Permalink
Browse files

Fix bug in original! You can only spray a can if you have one!

  • Loading branch information...
1 parent ad33b3e commit 0c63dd6d2f2a84ba27abd81d5c252c5db63bd839 @cpressey cpressey committed Mar 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 script/swl.pl
View
@@ -407,7 +407,7 @@ sub ask
print "\nEw. You now stink so bad that you can't smell anything but yourself.\n";
pause();
}
- elsif ($r eq 'A')
+ elsif ($r eq 'A' and $cans > 0)
{
$cans--;
print "\n * * * *** fshhhhhhhhhhfft *** * * *\n\n";

0 comments on commit 0c63dd6

Please sign in to comment.