diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-03-24 21:10:32 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-03-24 21:10:32 +0000 |
commit | adf5fb5d45c11a0506d199d2cc672535c8418ce1 (patch) | |
tree | e932cbb84f712abcf2e3ceeb29aa4611cf113392 /src/being.cpp | |
parent | 91c154d9ed3fa307ea5566f62b003c38cdacf2ad (diff) | |
download | mana-client-adf5fb5d45c11a0506d199d2cc672535c8418ce1.tar.gz mana-client-adf5fb5d45c11a0506d199d2cc672535c8418ce1.tar.bz2 mana-client-adf5fb5d45c11a0506d199d2cc672535c8418ce1.tar.xz mana-client-adf5fb5d45c11a0506d199d2cc672535c8418ce1.zip |
Incomplete attempt to fix whobbly walk at low fps (not for keyboard input)
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 3 |
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) |