Permalink
Browse files

Carp if move_ratio isn't an integer

  • Loading branch information...
1 parent d6aa03f commit 1a68fe5643d42d3e8095f9013fb5fcf353b50963 @jtpalmer committed Aug 21, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/SDLx/Controller/FPS.pm
@@ -21,6 +21,7 @@ sub new {
my $ratio = exists $args{move_ratio} ? $args{move_ratio} : 1;
if ( $ratio != int $ratio ) {
+ carp "move_ratio must be an integer\n";
$ratio = int $ratio;
}

0 comments on commit 1a68fe5

Please sign in to comment.