summaryrefslogtreecommitdiff
path: root/src/net/ea/beinghandler.cpp
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2010-02-09 01:42:50 +0100
committerBertram <bertram@cegetel.net>2010-02-09 01:42:50 +0100
commit56f501c8148b1061a02547d37b20eeeeb64029db (patch)
tree718e48289066706bc3851830f3c6b03150e66b97 /src/net/ea/beinghandler.cpp
parent8b4d9f9b5eaf175baf0c4209c312133bb457742c (diff)
downloadmana-56f501c8148b1061a02547d37b20eeeeb64029db.tar.gz
mana-56f501c8148b1061a02547d37b20eeeeb64029db.tar.bz2
mana-56f501c8148b1061a02547d37b20eeeeb64029db.tar.xz
mana-56f501c8148b1061a02547d37b20eeeeb64029db.zip
Made the Beings' logic be able to handle any tile height/width.
This is the First step to get rid of most hardcoded 32 values.
Diffstat (limited to 'src/net/ea/beinghandler.cpp')
-rw-r--r--src/net/ea/beinghandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp
index 86bfe929..b63e9e8a 100644
--- a/src/net/ea/beinghandler.cpp
+++ b/src/net/ea/beinghandler.cpp
@@ -161,7 +161,7 @@ void BeingHandler::handleMessage(Net::MessageIn &msg)
// Prevent division by 0 when calculating frame
if (speed == 0) { speed = 150; }
- dstBeing->setWalkSpeed(speed);
+ dstBeing->setWalkSpeed(Vector(speed, speed, 0));
dstBeing->setJob(job);
hairStyle = msg.readInt16();
weapon = msg.readInt16();
@@ -521,7 +521,7 @@ void BeingHandler::handleMessage(Net::MessageIn &msg)
}
}
- dstBeing->setWalkSpeed(speed);
+ dstBeing->setWalkSpeed(Vector(speed, speed, 0));
dstBeing->setJob(job);
hairStyle = msg.readInt16();
weapon = msg.readInt16();