mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
Added multi-version capabilities to NPCs.
Setting a spawn2 row's 'version' column to -1 will make that spawn appear in all versions of the zone. This is similar to how doors/objects/groundspawns use version -1.
This commit is contained in:
+2
-2
@@ -488,7 +488,7 @@ bool ZoneDatabase::PopulateZoneSpawnListClose(uint32 zoneid, LinkedList<Spawn2*>
|
||||
"animation "
|
||||
"FROM "
|
||||
"spawn2 "
|
||||
"WHERE zone = '%s' AND version = %u",
|
||||
"WHERE zone = '%s' AND (version = %u OR version = -1) ",
|
||||
zone_name,
|
||||
version
|
||||
);
|
||||
@@ -592,7 +592,7 @@ bool ZoneDatabase::PopulateZoneSpawnList(uint32 zoneid, LinkedList<Spawn2*> &spa
|
||||
"animation "
|
||||
"FROM "
|
||||
"spawn2 "
|
||||
"WHERE zone = '%s' AND version = %u",
|
||||
"WHERE zone = '%s' AND (version = %u OR version = -1)",
|
||||
zone_name,
|
||||
version
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user