mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-26 19:52:17 +00:00
Changed NPCTypes Data to bulk load when the zone loads or Repops, this bulk loading is stored in the npc_types cache
This commit is contained in:
1 parent
16002eb62e
commit
1966324112
12 files changed
+268
-194
No files matched your search
+1
-1
@@ -270,7 +270,7 @@ void Client::GoFish()
|
||||
//check for add NPC
|
||||
if(npc_chance > 0 && npc_id) {
|
||||
if(npc_chance < zone->random.Int(0, 99)) {
|
||||
const NPCType* tmp = database.GetNPCType(npc_id);
|
||||
const NPCType* tmp = database.LoadNPCTypesData(npc_id);
|
||||
if(tmp != nullptr) {
|
||||
auto positionNPC = GetPosition();
|
||||
positionNPC.x = positionNPC.x + 3;
|
||||
|
||||
Reference in new issue
Block a user