make self destructive goals work

This commit is contained in:
Bill Currie 2001-09-22 22:30:33 +00:00
parent 66f50d2899
commit fe8bce0861

View file

@ -2522,10 +2522,15 @@ void(entity Goal, entity AP, float addb) DoResults =
#endif
#endif
// Setup for Respawn
// Items and Triggers do their own respawn work
if (Goal.classname == "info_tfgoal")
SetupRespawn(Goal);
if (Goal.killtarget && Goal.killtarget == Goal.targetname) {
// self destructive trigger
remove (Goal);
} else {
// Setup for Respawn
// Items and Triggers do their own respawn work
if (Goal.classname == "info_tfgoal")
SetupRespawn(Goal);
}
};
//=========================================================================