mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 05:21:16 +00:00
- fixed: Checking for quest item 0 should not print an error message but silently fail.
This commit is contained in:
parent
7bdb98cc0b
commit
148de414e0
2 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue