The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
June 20, 2024, 11:21:22 pm
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Fuel calculation bug - help me w/ this one ;)
« previous next »
Pages: [1] Print
Author Topic: Fuel calculation bug - help me w/ this one ;)  (Read 3420 times)
Zebranky food
Offline Offline

Gender: Male
Posts: 1

View Profile
Fuel calculation bug - help me w/ this one ;)
« on: December 02, 2002, 12:31:06 pm »

If anyone wants to replicate this, grab 8 fuel at the Sol starbase and autopilot to Zeta Centauri.  What I'd like to know is what the PC version and 3DO version say for the fuel calculation and if you can make it ;)   Current CVS checkout calculates to 7.8 fuel required when plotting the auto-pilot course on the starmap and you fall short since it actually takes 8.53 (Pulled from debugging the source... @ sis.c:646 if anyone's interested, look for the state of GlobData.SIS_state.FuelOnBoard.  It's decremented about 16 lines down from that at the += fuel_delta:

else if ((GLOBAL_SIS (FuelOnBoard) += fuel_delta) >
    (FuelCapacity = GetFTankCapacity (NULL_PTR)))
            GLOBAL_SIS (FuelOnBoard) = FuelCapacity;

An interesting note... if being pulled into an encounter in hyperspace moves you, it burns a little fuel, like .02 units, but it still uses some :)

TIA for the help...
Pages: [1] Print 
« previous next »
Jump to:  

Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!