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
+9 -6
+9 -6
View File
@@ -927,13 +927,16 @@ sub _runcard {
# Delete all the cards. # Delete all the cards.
my $delres; my $delres;
foreach (@xcards) { $delres = _delcard($CURRTURN, $_); } foreach (@xcards) { $delres = _delcard($CURRTURN, $_); }
my $str; if (defined $delres) {
for (my $i = $#xcards; $i >= 0; $i--) { $str .= ' '._fmtcard($xcards[$i]); } my $str;
$str = substr $str, 1; for (my $i = $#xcards; $i >= 0; $i--) { $str .= ' '._fmtcard($xcards[$i]); }
if ($delres != -1) { $str = substr $str, 1;
notice($net, $NICKS{$CURRTURN}, "You discarded: $str"); if ($delres != -1) {
_nextturn(0); notice($net, $NICKS{$CURRTURN}, "You discarded: $str");
_nextturn(0);
}
} }
else { _nextturn(0); }
} }
when ('T') { when ('T') {
# Get cards. # Get cards.