test/chimaera.sod: Reorder Serpent tickling decision.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 7 Sep 2015 14:20:11 +0000 (15:20 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 7 Sep 2015 23:05:06 +0000 (00:05 +0100)
It makes more sense to me to have the actions in the order they'll be
experienced.

test/chimaera.sod

index 5b55e93..e9b9077 100644 (file)
@@ -37,8 +37,8 @@ class Serpent : Animal {
   void hiss() { puts("Sssss!"); }
   void bite() { puts("Nom!"); }
   void nml.tickle() {
-    if (SERPENT__CONV_NML(me)->nml.tickles > 2) Serpent_bite(me);
-    else Serpent_hiss(me);
+    if (SERPENT__CONV_NML(me)->nml.tickles <= 2) Serpent_hiss(me);
+    else Serpent_bite(me);
   }
 }