diff options
-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) |