From 78abc558e3dfab37480dc8f522e3389157d81149 Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Sun, 5 May 2013 10:34:59 +0200 Subject: Added tick argument to the monster update callback --- src/game-server/monster.cpp | 1 + 1 file changed, 1 insertion(+) 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()); } } -- cgit