diff --git a/src/game/client/drawable.cpp b/src/game/client/drawable.cpp index d3eaca162..1e53c0caf 100644 --- a/src/game/client/drawable.cpp +++ b/src/game/client/drawable.cpp @@ -3185,7 +3185,7 @@ void Drawable::Update_Drawable() (*modules)->Set_Terrain_Decal_Opacity(m_terrainDecalOpacity); } - if (m_terrainDecalFadeTarget2 < 0.0f || m_terrainDecalOpacity <= 0.0f) { + if (m_terrainDecalFadeTarget2 < 0.0f && m_terrainDecalOpacity <= 0.0f) { m_terrainDecalFadeTarget2 = 0.0f; m_terrainDecalOpacity = 0.0f; Set_Terrain_Decal(TERRAIN_DECAL_8); diff --git a/src/game/common/ini/ini.cpp b/src/game/common/ini/ini.cpp index f5332cb1a..9d971f1ef 100644 --- a/src/game/common/ini/ini.cpp +++ b/src/game/common/ini/ini.cpp @@ -481,7 +481,7 @@ float INI::Scan_PercentToReal(const char *token) int res = sscanf(token, "%f", &value); captainslog_relassert(res == 1, 0xDEAD0006, "Unable to parse percentage from token %s.", token); - return (value / 100.0f); + return (value * 0.01f); } float INI::Scan_Real(const char *token)