mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-29 07:12:20 +00:00
SERVER: Stop mglow$ from leaking MBOX ents
This commit is contained in:
parent
10418b38f7
commit
ad23cd7933
1 changed files with 4 additions and 2 deletions
|
@ -1340,6 +1340,7 @@ void() findboxspot =
|
|||
newspot.touch = mystery_touch;
|
||||
newspot.solid=SOLID_TRIGGER;
|
||||
newspot.classname = "mystery";
|
||||
newspot.spawnflags = self.owner.spawnflags;
|
||||
setorigin(newspot, newspot.origin);
|
||||
setmodel (newspot, "models/machines/mystery.mdl");
|
||||
newspot.frame = 0;
|
||||
|
@ -1349,8 +1350,9 @@ void() findboxspot =
|
|||
void() remove_box =
|
||||
{
|
||||
if (!(self.owner.spawnflags & MBOX_SPAWNFLAG_NOLIGHT))
|
||||
if (self.owner.goaldummy != world)
|
||||
setmodel(self.owner.goaldummy, "");
|
||||
if (self.owner.goaldummy != world) {
|
||||
MBOX_FreeEnt(self.owner.goaldummy);
|
||||
}
|
||||
|
||||
self.owner.frame = 0; // set box frame
|
||||
makevectors(self.angles);
|
||||
|
|
Loading…
Reference in a new issue