]> Pileus Git - ~andy/rhawk/commitdiff
Don't reset per-message variables
authorAndy Spencer <andy753421@gmail.com>
Mon, 6 May 2013 05:35:25 +0000 (05:35 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 6 May 2013 05:37:23 +0000 (05:37 +0000)
This can break any commands run after the reset, such as telling the
player their hand at the end of a hand.

spades.awk

index ae662ca217b6752d13b47c2391afd99a328a6845..38d51bec7407d19019ace1b35b42ebc9c9ffba63 100644 (file)
@@ -17,7 +17,7 @@ function sp_init(cards, tmp0, tmp1)
 function sp_reset(type)
 {
        # Per message
-       if (type >= 0) {
+       if (type  0) {
                sp_from     = ""    #    The speakers player name
                sp_valid    = ""    #    It is the speaker turn
        }