mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
CON: Add the following commands to those which shouldn't be optimized away
with empty branches: ifcanseetarget, ifpdistl, ifpdistg, ifgotweapononce. git-svn-id: https://svn.eduke32.com/eduke32@2149 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
775d652d7d
commit
3285cfef8c
1 changed files with 3 additions and 2 deletions
|
@ -1773,9 +1773,10 @@ static int32_t C_CheckMalformedBranch(intptr_t lastScriptPtr)
|
|||
|
||||
static int32_t C_CheckEmptyBranch(int32_t tw, intptr_t lastScriptPtr)
|
||||
{
|
||||
// ifrnd, ifhitweapon and ifcansee actually do something when the condition is executed
|
||||
// ifrnd and the others actually do something when the condition is executed
|
||||
if ((Bstrncmp(keyw[tw], "if", 2) && tw != CON_ELSE) ||
|
||||
tw == CON_IFRND || tw == CON_IFHITWEAPON || tw == CON_IFCANSEE)
|
||||
tw == CON_IFRND || tw == CON_IFHITWEAPON || tw == CON_IFCANSEE || tw == CON_IFCANSEETARGET ||
|
||||
tw == CON_IFPDISTL || tw == CON_IFPDISTG || tw == CON_IFGOTWEAPONCE)
|
||||
{
|
||||
g_ifElseAborted = 0;
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue