diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/game-server/spawnarea.cpp | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2007-06-16 Guillaume Melquiond <guillaume.melquiong@gmail.com> + + * src/game-server/spawnarea.cpp: Delegated creature insertion to the + State class so that it does not disturb object updating. + 2007-06-26 Eugenio Favalli <elvenprogrammer@gmail.com> * accountserver.cbp: Updated project file. diff --git a/src/game-server/spawnarea.cpp b/src/game-server/spawnarea.cpp index bded9cc0..9d7687ff 100644 --- a/src/game-server/spawnarea.cpp +++ b/src/game-server/spawnarea.cpp @@ -65,7 +65,8 @@ SpawnArea::update() being->setMapId(1); being->setPosition(Point(mZone.x + rand() % mZone.w, mZone.y + rand() % mZone.h)); - gameState->insert(being); + DelayedEvent e = { EVENT_INSERT }; + gameState->enqueueEvent(being, e); mNumBeings++; } |