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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