mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-21 11:21:14 +00:00
SERVER: Auto-remove targetless lights and info_null
This commit is contained in:
parent
9fc6f93e77
commit
6f43585c0f
2 changed files with 5 additions and 2 deletions
|
@ -46,6 +46,7 @@ void() info_player_1_spawn = {};
|
|||
void() info_player_2_spawn = {};
|
||||
void() info_player_3_spawn = {};
|
||||
void() info_player_4_spawn = {};
|
||||
void() info_null = {remove(self);};
|
||||
|
||||
void() zombie_horde_point = {};
|
||||
|
||||
|
|
|
@ -61,8 +61,10 @@ void() LS_Setup =
|
|||
void() L_Setup =
|
||||
{
|
||||
// If it's not vanilla ZHLT, cut it off.
|
||||
if (self.style > 12)
|
||||
return;
|
||||
if (self.style > 12 || !self.targetname) {
|
||||
remove(self);
|
||||
return;
|
||||
}
|
||||
|
||||
// Set the Light to be Off if the spawnflag is set.
|
||||
/*if ((self.spawnflags & LIGHT_SPAWNFLAG_STARTOFF)) {
|
||||
|
|
Loading…
Reference in a new issue