diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2007-06-30 15:01:50 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2007-06-30 15:01:50 +0000 |
commit | d7e84be1d3dc935f47cefc0f600ced74f37e46fb (patch) | |
tree | f535b6b4130994a9162c48f8c556b0dd5ddc9a5f /src/game-server/state.cpp | |
parent | fd392c16c0a1236ca4ea124b5ebbd309df1c5064 (diff) | |
download | manaserv-d7e84be1d3dc935f47cefc0f600ced74f37e46fb.tar.gz manaserv-d7e84be1d3dc935f47cefc0f600ced74f37e46fb.tar.bz2 manaserv-d7e84be1d3dc935f47cefc0f600ced74f37e46fb.tar.xz manaserv-d7e84be1d3dc935f47cefc0f600ced74f37e46fb.zip |
Implemented basic monster AI and fixed a stability problem caused by the spawn areas.
Diffstat (limited to 'src/game-server/state.cpp')
-rw-r--r-- | src/game-server/state.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game-server/state.cpp b/src/game-server/state.cpp index 929d4304..c27f9209 100644 --- a/src/game-server/state.cpp +++ b/src/game-server/state.cpp @@ -69,7 +69,7 @@ void State::updateMap(MapComposite *map) (*i)->move(); } - // 4. remove dead beings + // 4. remove dead beings. for (MovingObjectIterator i(map->getWholeMapIterator()); i; ++i) { if ((*i)->getUpdateFlags() & UPDATEFLAG_REMOVE) @@ -79,6 +79,7 @@ void State::updateMap(MapComposite *map) } } + // 5. update the map itself. map->update(); } |