env_fade: fix bogus reading of key names in SpawnKey()

This commit is contained in:
Marco Cawthorne 2023-09-27 13:31:50 -07:00
parent 3d92491e54
commit 2dbfeb06b6
Signed by: eukara
GPG key ID: CE2032F0A2882A22
2 changed files with 2 additions and 3 deletions

View file

@ -92,10 +92,10 @@ void
env_fade::SpawnKey(string strKey, string strValue)
{
switch (strKey) {
case "m_flFadeDuration":
case "duration":
m_flFadeDuration = stof(strValue);
break;
case "m_flFadeHold":
case "holdtime":
m_flFadeHold = stof(strValue);
break;
default:

View file

@ -392,7 +392,6 @@ func_tracktrain::PathNext(void)
void
func_tracktrain::Trigger(entity act, triggermode_t state)
{
breakpoint();
PathMove();
}