Oops... Forgot to change some references here.
This commit is contained in:
parent
2246b83de2
commit
d2bb60b559
2 changed files with 8 additions and 5 deletions
|
|
@ -1205,20 +1205,23 @@ Class Chancebox : Actor
|
|||
s.scale *= 2.4;
|
||||
}
|
||||
// handling these AFTER item drop should ensure no wacky stuff happens with repeated "all clear" events
|
||||
// note: if we delay it like this, we have to check for non-null user just to be safe
|
||||
if ( bCOUNTITEM )
|
||||
{
|
||||
user.player.itemcount++;
|
||||
if ( target ) target.player.itemcount++;
|
||||
level.found_items++;
|
||||
bCOUNTITEM = false;
|
||||
}
|
||||
if ( bCOUNTSECRET )
|
||||
{
|
||||
user.GiveSecret();
|
||||
if ( target ) target.GiveSecret();
|
||||
else level.found_secrets++;
|
||||
bCOUNTSECRET = false;
|
||||
}
|
||||
if ( special )
|
||||
{
|
||||
user.A_CallSpecial(special,args[0],args[1],args[2],args[3],args[4]);
|
||||
if ( target ) target.A_CallSpecial(special,args[0],args[1],args[2],args[3],args[4]);
|
||||
else level.ExecuteSpecial(special,null,null,false,args[0],args[1],args[2],args[3],args[4]);
|
||||
special = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue