mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-10 07:11:51 +00:00
- handle cases in Give_Frags_Out where atk or targ are world
This commit is contained in:
parent
5f966cf9a3
commit
f7f447b6f0
1 changed files with 3 additions and 1 deletions
|
@ -123,6 +123,8 @@ float(entity targ, entity checker, float chkvis, float chkrng, float istesla, fl
|
|||
|
||||
void(entity atk, entity targ, float numfrags, float fraggetlog, float howgive, float chkreal, float chkvamp) Give_Frags_Out =
|
||||
{
|
||||
if (!atk) // handles cases where the attack ent may have been zeroed
|
||||
return;
|
||||
/*
|
||||
local string st;
|
||||
bprint(PRINT_HIGH, "atk:");
|
||||
|
@ -176,7 +178,7 @@ bprint(PRINT_HIGH, "\n");
|
|||
}
|
||||
if (chkvamp)
|
||||
{
|
||||
if (teamplay & TEAMPLAY_VAMPIRE)
|
||||
if (teamplay & TEAMPLAY_VAMPIRE && targ) // handle when targ is cleared
|
||||
{
|
||||
targ.real_frags = targ.real_frags - numfrags;
|
||||
if (!(toggleflags & TFLAG_TEAMFRAGS))
|
||||
|
|
Loading…
Reference in a new issue