From 967dc62b3f7d076e478fa67dbf95068f89b3d7d5 Mon Sep 17 00:00:00 2001 From: "Jeffrey T. Palmer" Date: Sun, 21 Aug 2011 16:01:55 -0400 Subject: [PATCH] Fix bug --- lib/SDLx/Controller/FPS.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/SDLx/Controller/FPS.pm b/lib/SDLx/Controller/FPS.pm index 21d10ad..3846b8f 100644 --- a/lib/SDLx/Controller/FPS.pm +++ b/lib/SDLx/Controller/FPS.pm @@ -60,6 +60,9 @@ sub run { while ( !$_stop{$ref} ) { $self->_event($ref); + # the move ratio may have changed + $ratio = $_move_ratio{$ref}; + for ( 1 .. $ratio ) { $self->_move($ref); }