summaryrefslogtreecommitdiff
path: root/src/net/manaserv/beinghandler.cpp
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2010-02-09 03:18:35 +0100
committerBertram <bertram@cegetel.net>2010-02-09 03:20:48 +0100
commitb7f93f0b2ec91e04d3ed9035c9e21015b8b57cdd (patch)
tree2d110cf418fab5d733c5172a52aaaffa74c2d693 /src/net/manaserv/beinghandler.cpp
parent6a6b36fa2d19a6ea9d39b975354709e7ad82281d (diff)
downloadmana-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.cpp9
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;