From f8d64234d7db8338926a16ebb2208ded03559070 Mon Sep 17 00:00:00 2001 From: dongresource Date: Mon, 12 Oct 2020 21:06:16 +0200 Subject: [PATCH] Spawn mobs above ground to alleviate hill/building phasing issues. --- src/ChatManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ChatManager.cpp b/src/ChatManager.cpp index b81261a..b5f9124 100644 --- a/src/ChatManager.cpp +++ b/src/ChatManager.cpp @@ -226,7 +226,7 @@ void summonWCommand(std::string full, std::vector& args, CNSocket* BaseNPC *npc = nullptr; if (team == 2) { - npc = new Mob(plr->x, plr->y, plr->z, plr->instanceID, type, NPCManager::NPCData[type], NPCManager::nextId++); + npc = new Mob(plr->x, plr->y, plr->z + 1000, plr->instanceID, type, NPCManager::NPCData[type], NPCManager::nextId++); npc->appearanceData.iAngle = (plr->angle + 180) % 360; NPCManager::NPCs[npc->appearanceData.iNPC_ID] = npc;