From 363f1e0e57c3a12ad0290ee0767038c635eaa874 Mon Sep 17 00:00:00 2001 From: gewlitys Date: Wed, 10 Dec 2003 22:37:18 +0000 Subject: [PATCH] Fuel usage on planet landing is now reported correctly on all situations (bug #556), from Nic git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1298 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/ChangeLog | 2 ++ sc2/src/sc2code/planets/scan.c | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sc2/ChangeLog b/sc2/ChangeLog index ea8318ab4..b335e3ef5 100644 --- a/sc2/ChangeLog +++ b/sc2/ChangeLog @@ -1,4 +1,6 @@ Changes towards version 0.4: +- Fuel usage on planet landing is now reported correctly on all situations + (bug #556), from Nic - Fine-grained control of menu sounds, "MenuSounds" global now guaranteed to always be non-null -Michael - Added support for stdio file access through temporary files to uio. diff --git a/sc2/src/sc2code/planets/scan.c b/sc2/src/sc2code/planets/scan.c index 5735e8044..ee88fba8e 100644 --- a/sc2/src/sc2code/planets/scan.c +++ b/sc2/src/sc2code/planets/scan.c @@ -991,10 +991,9 @@ DoScan (PMENU_STATE pMS) return (TRUE); } - wsprintf (buf, "%s%u.%u", + wsprintf (buf, "%s%1.1f", GAME_STRING (NAVIGATION_STRING_BASE + 5), - fuel_required / FUEL_TANK_SCALE, - ((fuel_required % FUEL_TANK_SCALE) + 5) / 10); + (float) fuel_required / FUEL_TANK_SCALE); LockMutex (GraphicsLock); ClearSISRect (CLEAR_SIS_RADAR); DrawStatusMessage (buf);