env_sprite: Change default scale to 0.25, make sure that when no targetname
is set, we force-enable the sprite because toggles wouldn't work.
This commit is contained in:
parent
ed4f972a19
commit
2daf3da59f
1 changed files with 6 additions and 1 deletions
|
@ -128,8 +128,13 @@ void
|
|||
env_sprite::env_sprite(void)
|
||||
{
|
||||
m_flFramerate = 10;
|
||||
m_flScale = 1.0f;
|
||||
m_flScale = 0.25f; /* this is the default, according to Sven Manor */
|
||||
|
||||
CBaseTrigger::CBaseTrigger();
|
||||
|
||||
m_iToggled = ((spawnflags & ENVS_STARTON) > 0);
|
||||
|
||||
/* how pointless this would be otherwise. */
|
||||
if (!targetname)
|
||||
m_iToggled = TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue