diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-05-05 10:34:59 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-05-11 23:31:16 +0200 |
commit | 78abc558e3dfab37480dc8f522e3389157d81149 (patch) | |
tree | 70c82d630f42490e3137c79436d303a08d0fac11 /src/game-server | |
parent | a4fa031fb36683667f17d4824293ff27ddca7a7a (diff) | |
download | manaserv-78abc558e3dfab37480dc8f522e3389157d81149.tar.gz manaserv-78abc558e3dfab37480dc8f522e3389157d81149.tar.xz manaserv-78abc558e3dfab37480dc8f522e3389157d81149.zip |
Added tick argument to the monster update callback
Diffstat (limited to 'src/game-server')
-rw-r--r-- | src/game-server/monster.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game-server/monster.cpp b/src/game-server/monster.cpp index 1c4f39b..d5de45e 100644 --- a/src/game-server/monster.cpp +++ b/src/game-server/monster.cpp @@ -105,6 +105,7 @@ void MonsterComponent::update(Entity &entity) Script *script = ScriptManager::currentState(); script->prepare(mSpecy->getUpdateCallback()); script->push(&entity); + script->push(GameState::getCurrentTick()); script->execute(entity.getMap()); } } |