From c4fc899bcfde6823dfc3b9d9a6267d353c222653 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Thu, 16 Oct 2003 21:38:13 +0000 Subject: [PATCH] Fixed fuel usage estimate to selected destination on the starmap. Original bug, not reported. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1278 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/ChangeLog | 2 ++ sc2/src/sc2code/planets/pstarmap.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sc2/ChangeLog b/sc2/ChangeLog index f29582fbc..066d398a6 100644 --- a/sc2/ChangeLog +++ b/sc2/ChangeLog @@ -1,4 +1,6 @@ Changes towards version 0.4: +- Fixed fuel usage estimate to selected destination on the starmap. + (original bug, not reported) - SvdB - Sound decoders refactoring: decoders are now virtualized, the high-level decoding code is unified and any format is theoretically streamable -Alex diff --git a/sc2/src/sc2code/planets/pstarmap.c b/sc2/src/sc2code/planets/pstarmap.c index 1a8b0e64c..2fe5d48cd 100644 --- a/sc2/src/sc2code/planets/pstarmap.c +++ b/sc2/src/sc2code/planets/pstarmap.c @@ -797,7 +797,7 @@ UpdateCursorInfo: if (f == 0 || GET_GAME_STATE (ARILOU_SPACE_SIDE) > 1) fuel_required = 0; else - fuel_required = square_root (f) + (FUEL_TANK_SCALE >> 1); + fuel_required = square_root (f) + (FUEL_TANK_SCALE / 20); LockMutex (GraphicsLock); DrawHyperCoords (pMenuState->first_item); if (last_buf == (UNICODE) ~0