Permalink
Browse files

Fixed stop() and run() consecutive calls

  • Loading branch information...
kthakore
kthakore committed Nov 25, 2010
1 parent 85ffd21 commit 2fb6563634ac91c4ce9c11d2d6e5a70db2f0bab4
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/SDLx/Controller.pm
View
@@ -62,6 +62,10 @@ sub run {
my $dt = $_dt{ refaddr $self};
my $min_t = $_min_t{ refaddr $self};
my $t = 0.0;
+
+ #Allows us to do stop and run
+ $_stop{ refaddr $self} = 0;
+
$_current_time{ refaddr $self} = Time::HiRes::time;
while ( !$_stop{ refaddr $self} ) {
$self->_event;

0 comments on commit 2fb6563

Please sign in to comment.