From adf5fb5d45c11a0506d199d2cc672535c8418ce1 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 24 Mar 2005 21:10:32 +0000 Subject: Incomplete attempt to fix whobbly walk at low fps (not for keyboard input) --- src/being.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) { 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) -- cgit v1.2.3-70-g09d2