Przeglądaj źródła

Fixed doors that have a LUA script, butn o usedoor defined, they will open correctly if no usedoor function exists

Image 3 lat temu
rodzic
commit
1b95c72543
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      EQ2/source/WorldServer/zoneserver.cpp

+ 1 - 1
EQ2/source/WorldServer/zoneserver.cpp

@@ -2699,7 +2699,7 @@ bool ZoneServer::CallSpawnScript(Spawn* npc, int8 type, Spawn* spawn, const char
 				break;
 			}
 			case SPAWN_SCRIPT_USEDOOR: {
-				lua_interface->RunSpawnScript(script, "usedoor", npc, spawn, "", is_door_open);
+				result = lua_interface->RunSpawnScript(script, "usedoor", npc, spawn, "", is_door_open);
 				break;
 			}
 			default: