mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-27 06:22:23 +00:00
hopefully fix 3 entity leaks
This commit is contained in:
parent
1afd36dc3d
commit
7c3dcf1d31
3 changed files with 5 additions and 4 deletions
|
@ -959,8 +959,10 @@ void() player_die_ax1;
|
|||
|
||||
void() DeathBubblesSpawn =
|
||||
{
|
||||
if (self.owner.waterlevel != 3 && self.has_holo == 0)
|
||||
if (self.owner.waterlevel != 3 && self.has_holo == 0) {
|
||||
dremove(self);
|
||||
return;
|
||||
}
|
||||
newmis = spawn();
|
||||
setmodel (newmis, "progs/s_bubble.spr");
|
||||
setorigin (newmis, self.owner.origin + '0 0 24');
|
||||
|
|
|
@ -198,7 +198,6 @@ void(entity ignore, string st, string st2, string st3, string st4, string st5, s
|
|||
void() ThrowC4Det =
|
||||
{
|
||||
local entity user;
|
||||
local entity oldself;
|
||||
|
||||
self.owner.is_toffingadet = 0;
|
||||
|
||||
|
@ -253,7 +252,7 @@ void() ThrowC4Det =
|
|||
setsize (newmis, '-16 -16 -8', '16 16 8');
|
||||
setorigin (newmis, user.origin);
|
||||
|
||||
oldself = self;
|
||||
dremove (self);
|
||||
self = user;
|
||||
|
||||
#ifdef DEMO_STUFF
|
||||
|
|
2
subs.qc
2
subs.qc
|
@ -179,7 +179,7 @@ void() SUB_CalcAngleMoveDone =
|
|||
|
||||
void() DelayThink =
|
||||
{
|
||||
local integer rem = self.killtarget != self.targetname;
|
||||
local integer rem = !self.killtarget || self.killtarget != self.targetname;
|
||||
activator = self.enemy;
|
||||
SUB_UseTargets ();
|
||||
if (rem)
|
||||
|
|
Loading…
Reference in a new issue