diff options
author | Bertram <bertram@cegetel.net> | 2010-02-09 03:18:35 +0100 |
---|---|---|
committer | Bertram <bertram@cegetel.net> | 2010-02-09 03:20:48 +0100 |
commit | b7f93f0b2ec91e04d3ed9035c9e21015b8b57cdd (patch) | |
tree | 2d110cf418fab5d733c5172a52aaaffa74c2d693 /src/net/manaserv/beinghandler.cpp | |
parent | 6a6b36fa2d19a6ea9d39b975354709e7ad82281d (diff) | |
download | mana-b7f93f0b2ec91e04d3ed9035c9e21015b8b57cdd.tar.gz mana-b7f93f0b2ec91e04d3ed9035c9e21015b8b57cdd.tar.bz2 mana-b7f93f0b2ec91e04d3ed9035c9e21015b8b57cdd.tar.xz mana-b7f93f0b2ec91e04d3ed9035c9e21015b8b57cdd.zip |
Got successfully rid of tile width/height fallback values as asked by Jaxad.
But I added some logs when speed and other actions where refused due to game/map
uninitialized. This could help.
Diffstat (limited to 'src/net/manaserv/beinghandler.cpp')
-rw-r--r-- | src/net/manaserv/beinghandler.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/net/manaserv/beinghandler.cpp b/src/net/manaserv/beinghandler.cpp index d1fff43d..99b01090 100644 --- a/src/net/manaserv/beinghandler.cpp +++ b/src/net/manaserv/beinghandler.cpp @@ -112,12 +112,9 @@ Vector BeingHandler::giveSpeedInPixelsPerTicks(float speedInTilesPerSeconds) if (!game || !map) { - speedInTicks.x = speedInTilesPerSeconds - * (float)DEFAULT_TILE_WIDTH - / 1000 * (float)MILLISECONDS_IN_A_TICK; - speedInTicks.y = speedInTilesPerSeconds - * (float)DEFAULT_TILE_HEIGHT - / 1000 * (float)MILLISECONDS_IN_A_TICK; + speedInTicks.x = speedInTicks.y = 0; + logger->log("Manaserv::BeingHandler: Speed wasn't given back" + " because game/Map not initialized."); } // We don't use z for now. speedInTicks.z = 0; |