From 148de414e0b43d909b9690f726bd82253b564e07 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 3 Jul 2016 13:32:40 +0200 Subject: [PATCH] - fixed: Checking for quest item 0 should not print an error message but silently fail. --- strifehelp.acs | 8 +++++++- .../static/filter/game-strife/acs/strfhelp.o | Bin 3184 -> 3288 bytes 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/strifehelp.acs b/strifehelp.acs index 9176ca006..495893edf 100644 --- a/strifehelp.acs +++ b/strifehelp.acs @@ -1,6 +1,7 @@ +#library "strfhelp" + #include "zcommon.acs" -#library "strfhelp" #define VDOORSPEED 16 #define VDOORWAIT 150 @@ -69,6 +70,7 @@ script << 0 >> (int type, int tag) case 230: i = GetLineRowOffset() & 31; + if (i == 0) break; if (CheckInventory (QuestItems[i]) || gametype() == GAME_NET_DEATHMATCH) { Door_Open (tag, VDOORSPEED); @@ -78,6 +80,7 @@ script << 0 >> (int type, int tag) case 227: i = GetLineRowOffset() & 31; + if (i == 0) break; if (CheckInventory (QuestItems[i]) || gametype() == GAME_NET_DEATHMATCH) { Door_Close (tag, VDOORSPEED); @@ -126,6 +129,7 @@ script << 0 >> (int type, int tag) case 193: i = GetLineRowOffset() & 31; + if (i == 0) break; if (CheckInventory (QuestItems[i]) || gametype() == GAME_NET_DEATHMATCH) { Floor_LowerToLowest (tag, 8); @@ -158,6 +162,7 @@ script << 0 >> (int type, int tag) case 187: i = GetLineRowOffset() & 31; + if (i == 0) break; if (CheckInventory (QuestItems[i]) || gametype() == GAME_NET_DEATHMATCH) { ClearForceField (tag); @@ -203,6 +208,7 @@ script << 0 >> (int type, int tag) case 216: i = GetLineRowOffset() & 31; + if (i == 0) break; if (CheckInventory (QuestItems[i]) || gametype() == GAME_NET_DEATHMATCH) { Door_Raise (tag, VDOORSPEED, VDOORWAIT); diff --git a/wadsrc/static/filter/game-strife/acs/strfhelp.o b/wadsrc/static/filter/game-strife/acs/strfhelp.o index 45664cbc4e92ae82c81c0c8382020e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