Fix Retro's rounding fail

This commit is contained in:
Phillip Stephens 2017-02-06 19:52:04 -08:00
parent 356788fb9e
commit e962ae271b
1 changed files with 2 additions and 1 deletions

View File

@ -128,7 +128,8 @@ CGameState::GameFileStateInfo CGameState::LoadGameFileState(const u8* data)
if (origMLVL == 0x158EFE17) if (origMLVL == 0x158EFE17)
itemPercent = 0; itemPercent = 0;
else else
itemPercent = playerState.CalculateItemCollectionRate() * 100 / playerState.GetPickupTotal(); itemPercent = std::ceil(playerState.CalculateItemCollectionRate() * 100.f / playerState.GetPickupTotal());
ret.x18_itemPercent = itemPercent; ret.x18_itemPercent = itemPercent;
float somePercent; float somePercent;