Skip to content
Browse files

next unleless ... Fixed

  • Loading branch information...
1 parent b32452b commit 672ce1c7a0f1d70ea169e5782f691655a9538f64 @Blaizer Blaizer committed Oct 4, 2010
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/SDLx/Controller.pm
View
10 lib/SDLx/Controller.pm
@@ -107,7 +107,7 @@ sub _event {
while ( SDL::Events::poll_event( $_event{ refaddr $self} ) ) {
SDL::Events::pump_events();
foreach my $event_handler ( @{ $_event_handlers{ refaddr $self} } ) {
- next unless $_;
+ next unless $event_handler;
$event_handler->( $_event{ refaddr $self}, $self );
}
}
@@ -116,16 +116,16 @@ sub _event {
sub _move {
my ($self, $move_portion, $t) = @_;
foreach my $move_handler ( @{ $_move_handlers{ refaddr $self} } ) {
- next unless $_;
+ next unless $move_handler;
$move_handler->( $move_portion, $self, $t );
}
}
sub _show {
my ($self, $delta_ticks) = @_;
- foreach my $event_handler ( @{ $_show_handlers{ refaddr $self} } ) {
- next unless $_;
- $event_handler->( $delta_ticks, $self );
+ foreach my $show_handler ( @{ $_show_handlers{ refaddr $self} } ) {
+ next unless $show_handler;
+ $show_handler->( $delta_ticks, $self );
}
}

0 comments on commit 672ce1c

Please sign in to comment.
Something went wrong with that request. Please try again.