Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed stop() and run() consecutive calls

  • Loading branch information...
commit 2fb6563634ac91c4ce9c11d2d6e5a70db2f0bab4 1 parent 85ffd21
@kthakore kthakore authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/SDLx/Controller.pm
View
4 lib/SDLx/Controller.pm
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.