Corrected bug in energy calculation.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1553 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -552,8 +552,8 @@ DrawFlagshipStats (void)
|
||||
t.baseline.y += leading;
|
||||
{
|
||||
unsigned int energy_per_10_sec =
|
||||
(((100 * BATTLE_FRAME_RATE * energy_regeneration) /
|
||||
(1 + energy_wait)) + 5) / 10;
|
||||
(((100 * ONE_SECOND * energy_regeneration) /
|
||||
((1 + energy_wait) * BATTLE_FRAME_RATE)) + 5) / 10;
|
||||
wsprintf (buf, "%2u.%1u",
|
||||
energy_per_10_sec / 10,
|
||||
energy_per_10_sec % 10);
|
||||
|
||||
Reference in New Issue
Block a user