]> Pileus Git - ~andy/rhawk/commitdiff
Minor spades bug fixes
authorAndy Spencer <andy753421@gmail.com>
Sat, 10 Aug 2013 05:12:02 +0000 (05:12 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sat, 10 Aug 2013 07:17:37 +0000 (07:17 +0000)
spades.awk

index d0a626063962d7b1e31611e6f72714fed085e254..e5516e0710079d6575d33603f95be6254fc557a6 100644 (file)
@@ -43,7 +43,7 @@ function sp_reset(type)
        # Per game
        if (type >= 2) {
                sp_channel  = ""    #     channel to play in
-               sp_state    = "new" #     {new,join,bid,play}
+               sp_state    = "new" #     {new,join,bid,pass,play}
                sp_owner    = ""    #     Who started the game
                sp_playto   = 0     #     Score the game will go to
                sp_dealer   =-1     #     Who is dealing this round
@@ -451,7 +451,7 @@ sp_state == "play" &&
 }
 
 !sp_valid &&
-(sp_state "bid" || sp_state == "play") &&
+(sp_state == "bid" || sp_state == "play") &&
 /^\.(bid|play)\>/ {
        if (sp_from in sp_players)
                say(".slap " FROM ", it is not your turn.")