mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-23 00:27:16 +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:
1 parent
216b3a039f
commit
16e341906d
3 files changed
+50
-8
No files matched your search
+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