Fuel give-away bug fixed, from BlckKnght.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@307 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
0.2:
|
0.2:
|
||||||
|
- Fuel giveaway bug fixed, from steve@blckknght.org
|
||||||
- Starmap fuel range calculator and actual consumption matches now
|
- Starmap fuel range calculator and actual consumption matches now
|
||||||
- Collision detection is now pixel-perfect (fixes Sa-Matra, BUTT missile, etc)
|
- Collision detection is now pixel-perfect (fixes Sa-Matra, BUTT missile, etc)
|
||||||
- Fixed lander position sign bug which was introduced by previous fixes
|
- Fixed lander position sign bug which was introduced by previous fixes
|
||||||
|
|||||||
@@ -688,7 +688,9 @@ DoBuy (RESPONSE_REF R)
|
|||||||
else if (PLAYER_SAID (R, buy_25_fuel))
|
else if (PLAYER_SAID (R, buy_25_fuel))
|
||||||
needed_credit = 25;
|
needed_credit = 25;
|
||||||
else if (PLAYER_SAID (R, fill_me_up))
|
else if (PLAYER_SAID (R, fill_me_up))
|
||||||
needed_credit = (COUNT)~0;
|
needed_credit = (capacity - GLOBAL_SIS (FuelOnBoard)
|
||||||
|
+ FUEL_TANK_SCALE - 1)
|
||||||
|
/ FUEL_TANK_SCALE;
|
||||||
|
|
||||||
if (needed_credit == 0)
|
if (needed_credit == 0)
|
||||||
{
|
{
|
||||||
@@ -700,12 +702,6 @@ DoBuy (RESPONSE_REF R)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (needed_credit == (COUNT)~0
|
|
||||||
&& (needed_credit = (capacity / FUEL_TANK_SCALE)
|
|
||||||
- (GLOBAL_SIS (FuelOnBoard)
|
|
||||||
/ FUEL_TANK_SCALE)) == 0)
|
|
||||||
needed_credit = 1;
|
|
||||||
|
|
||||||
if (GLOBAL_SIS (FuelOnBoard) / FUEL_TANK_SCALE
|
if (GLOBAL_SIS (FuelOnBoard) / FUEL_TANK_SCALE
|
||||||
+ needed_credit > capacity / FUEL_TANK_SCALE)
|
+ needed_credit > capacity / FUEL_TANK_SCALE)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user