light: Make sure we can't start a light dark when it has no targetname.
This is to work around a bug present in a custom map that was suggested that had an untriggerable light with no style - thus turning all lights off
This commit is contained in:
parent
3187bc0ffa
commit
2cef5d76ec
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ light::Trigger(entity act, int state)
|
|||
void
|
||||
light::Respawn(void)
|
||||
{
|
||||
if (spawnflags & 1) {
|
||||
if (spawnflags & 1 && targetname) {
|
||||
lightstyle(m_flStyle, "a");
|
||||
m_iEnabled = 0;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue