From 531b34b62dc3527f137ac1dea85eeae11c33f978 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Fri, 6 Apr 2018 17:22:08 -0700 Subject: [PATCH] Revert std::ceil on completion rate calculation --- Runtime/CGameState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/CGameState.cpp b/Runtime/CGameState.cpp index 19cf3662a..50ab1e51f 100644 --- a/Runtime/CGameState.cpp +++ b/Runtime/CGameState.cpp @@ -129,7 +129,7 @@ CGameState::GameFileStateInfo CGameState::LoadGameFileState(const u8* data) if (origMLVL == 0x158EFE17) itemPercent = 0; else - itemPercent = u32(std::ceil(playerState.CalculateItemCollectionRate() * 100.f / playerState.GetPickupTotal())); + itemPercent = playerState.CalculateItemCollectionRate() * 100 / playerState.GetPickupTotal(); ret.x18_itemPercent = itemPercent;