summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-24 21:10:32 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-24 21:10:32 +0000
commitadf5fb5d45c11a0506d199d2cc672535c8418ce1 (patch)
treee932cbb84f712abcf2e3ceeb29aa4611cf113392 /src
parent91c154d9ed3fa307ea5566f62b003c38cdacf2ad (diff)
downloadmana-adf5fb5d45c11a0506d199d2cc672535c8418ce1.tar.gz
mana-adf5fb5d45c11a0506d199d2cc672535c8418ce1.tar.bz2
mana-adf5fb5d45c11a0506d199d2cc672535c8418ce1.tar.xz
mana-adf5fb5d45c11a0506d199d2cc672535c8418ce1.zip
Incomplete attempt to fix whobbly walk at low fps (not for keyboard input)
Diffstat (limited to 'src')
-rw-r--r--src/being.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index a02ad79f..2fcd9367 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -127,6 +127,7 @@ void Being::setPath(std::list<PATH_NODE> path)
{
this->path = path;
nextStep();
+ walk_time = tick_time;
}
void Being::setHairColor(int color)
@@ -175,6 +176,7 @@ void Being::nextStep()
x = newX;
y = newY;
action = WALK;
+ walk_time += speed / 10;
} else {
action = STAND;
if (this == player_node) {
@@ -182,7 +184,6 @@ void Being::nextStep()
}
}
frame = 0;
- walk_time = tick_time;
}
void Being::drawSpeech(Graphics *graphics)