Fixed a few warnings.

This commit is contained in:
Elijah Perrault committed 2011-02-26 14:49:53 -07:00
1 parent 5b8568f811
commit db3f388006
1 file changed
+3
+3
View File
@@ -927,6 +927,7 @@ sub _runcard {
# Delete all the cards. # Delete all the cards.
my $delres; my $delres;
foreach (@xcards) { $delres = _delcard($CURRTURN, $_); } foreach (@xcards) { $delres = _delcard($CURRTURN, $_); }
if (defined $delres) {
my $str; my $str;
for (my $i = $#xcards; $i >= 0; $i--) { $str .= ' '._fmtcard($xcards[$i]); } for (my $i = $#xcards; $i >= 0; $i--) { $str .= ' '._fmtcard($xcards[$i]); }
$str = substr $str, 1; $str = substr $str, 1;
@@ -935,6 +936,8 @@ sub _runcard {
_nextturn(0); _nextturn(0);
} }
} }
else { _nextturn(0); }
}
when ('T') { when ('T') {
# Get cards. # Get cards.
my @ucards = @{$PLAYERS{$CURRTURN}}; my @ucards = @{$PLAYERS{$CURRTURN}};