Skip to content

Commit

Permalink
added float error
Browse files Browse the repository at this point in the history
  • Loading branch information
6emmes committed Oct 31, 2024
1 parent e48c78a commit 7e8941d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/common/ini/ini.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7e8941d

Please sign in to comment.