this fixes looting unspawned chests (double loot bug):
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp
index 1d08d73..d1088cc 100644
--- a/src/game/GameObject.cpp
+++ b/src/game/GameObject.cpp
@@ -205,6 +205,10 @@ void GameObject::Update(uint32 /*p_time*/)
}
return;
}
+ case GAMEOBJECT_TYPE_CHEST:
+ if (isSpawned())
+ m_lootState = GO_READY;
+ break;
default:
m_lootState = GO_READY; // for other GOis same switched without delay to GO_READY
break;
@@ -413,7 +417,7 @@ void GameObject::Update(uint32 /*p_time*/)
}
loot.clear();
- SetLootState(GO_READY);
+ SetLootState(GO_NOT_READY);
if(!m_respawnDelayTime)
return;