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.touch = mystery_touch;
|
||||||
newspot.solid=SOLID_TRIGGER;
|
newspot.solid=SOLID_TRIGGER;
|
||||||
newspot.classname = "mystery";
|
newspot.classname = "mystery";
|
||||||
|
newspot.spawnflags = self.owner.spawnflags;
|
||||||
setorigin(newspot, newspot.origin);
|
setorigin(newspot, newspot.origin);
|
||||||
setmodel (newspot, "models/machines/mystery.mdl");
|
setmodel (newspot, "models/machines/mystery.mdl");
|
||||||
newspot.frame = 0;
|
newspot.frame = 0;
|
||||||
|
@ -1349,8 +1350,9 @@ void() findboxspot =
|
||||||
void() remove_box =
|
void() remove_box =
|
||||||
{
|
{
|
||||||
if (!(self.owner.spawnflags & MBOX_SPAWNFLAG_NOLIGHT))
|
if (!(self.owner.spawnflags & MBOX_SPAWNFLAG_NOLIGHT))
|
||||||
if (self.owner.goaldummy != world)
|
if (self.owner.goaldummy != world) {
|
||||||
setmodel(self.owner.goaldummy, "");
|
MBOX_FreeEnt(self.owner.goaldummy);
|
||||||
|
}
|
||||||
|
|
||||||
self.owner.frame = 0; // set box frame
|
self.owner.frame = 0; // set box frame
|
||||||
makevectors(self.angles);
|
makevectors(self.angles);
|
||||||
|
|
Loading…
Reference in a new issue