Fix issue with action not being updated when typing grow()/fire()/etc in console...
[supertux.git] / src / object / endsequence_walkright.cpp
index 823b29f..32f529e 100644 (file)
@@ -20,6 +20,7 @@
 #include <config.h>
 #include "endsequence_walkright.hpp"
 #include "sector.hpp"
+#include "mainloop.hpp"
 #include "object/player.hpp"
 
 EndSequenceWalkRight::EndSequenceWalkRight()
@@ -41,7 +42,7 @@ EndSequenceWalkRight::starting()
 {
   EndSequence::starting();
   last_x_pos = -1;
-  endsequence_timer.start(7.3f);
+  endsequence_timer.start(7.3f * main_loop->get_speed());
 }
 
 void
@@ -67,4 +68,3 @@ EndSequenceWalkRight::stopping()
 {
   EndSequence::stopping();
 }
-