We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea71ddf commit 6fae778Copy full SHA for 6fae778
1 file changed
sp/src/game/shared/mapbase/vscript_funcs_shared.h
@@ -250,6 +250,9 @@ struct ScriptEmitSound_t : public EmitSound_t
250
float GetSoundTime() { return m_flSoundTime; }
251
void SetSoundTime( float flSoundTime ) { m_flSoundTime = flSoundTime; }
252
253
+ // NOTE: Incorrectly returns float for boolean type.
254
+ // Fixing this would break scripts explicitly comparing against 0 or 1 or variables that store the results
255
+ // Keeping this would prevent implicit falseness check in a language such as Lua where 0.0 is truthy
256
float GetEmitCloseCaption() { return m_bEmitCloseCaption; }
257
void SetEmitCloseCaption( bool bEmitCloseCaption ) { m_bEmitCloseCaption = bEmitCloseCaption; }
258
0 commit comments