shithub: choc

Download patch

ref: 50f881cdc237d6c35111c13f10cb91e27df8e2cd
parent: 91a66a7ecba5e0dea87c8d98237d6a224f13347a
author: Simon Howard <fraggle@soulsphere.org>
date: Sat Jan 20 21:43:07 EST 2018

hexen: Remove test code mistakenly added.

This fixes spurious ACS assertion failures which were mistakenly
added in 666e8da5fdc204a0406139f660a6a674210f156c.

--- a/src/hexen/p_acs.c
+++ b/src/hexen/p_acs.c
@@ -362,7 +362,6 @@
 static int ReadScriptVar(void)
 {
     int var = ReadCodeInt();
-    ACSAssert(0, "testing error messages");
     ACSAssert(var >= 0, "negative script variable: %d < 0", var);
     ACSAssert(var < MAX_ACS_SCRIPT_VARS,
               "invalid script variable: %d >= %d", var, MAX_ACS_SCRIPT_VARS);