EnableKeyRepeat while console is open.
[supertux.git] / src / object / path_walker.cpp
index a44b157..d0d55dd 100644 (file)
@@ -24,7 +24,7 @@
 #include "path_walker.hpp"
 
 PathWalker::PathWalker(const Path* path, bool running)
-  : path(path), running(running), current_node_nr(0), next_node_nr(0), stop_at_node_nr(-1), node_time(0),
+  : path(path), running(running), current_node_nr(0), next_node_nr(0), stop_at_node_nr(running?-1:0), node_time(0),
     walking_speed(1.0)
 {
   last_pos = path->nodes[0].position;