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:
Marco Cawthorne 2020-10-24 06:36:08 +02:00
parent ed4f972a19
commit 2daf3da59f

View file

@ -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;
}