mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-03 03:50:40 +00:00
[Fix] Zone State Spawn2 Location Restore (#4844)
* [Fix] Zone State Spawn2 Location Restore * Update zone_save_state.cpp * Update zone_save_state.cpp * Update zone_save_state.cpp * Update zone_save_state.cpp
This commit is contained in:
+7
-1
@@ -277,7 +277,13 @@ bool Spawn2::Process() {
|
||||
}
|
||||
}
|
||||
|
||||
NPC *npc = new NPC(tmp, this, glm::vec4(x, y, z, heading), GravityBehavior::Water);
|
||||
// zone state restore
|
||||
if (m_stored_location != glm::vec4(0, 0, -1000, 0)) {
|
||||
loc = m_stored_location;
|
||||
m_stored_location = glm::vec4(0, 0, -1000, 0);
|
||||
}
|
||||
|
||||
NPC *npc = new NPC(tmp, this, loc, GravityBehavior::Water);
|
||||
|
||||
npcthis = npc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user