Resource units given more obviously when ordering a probe to

self-destruct (bug #586), from Nic.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1385 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2004-06-15 22:59:55 +00:00
parent 49bb1703d4
commit a739db6786
3 changed files with 14 additions and 9 deletions
+2
View File
@@ -1,4 +1,6 @@
Changes towards version 0.4: Changes towards version 0.4:
- Resource units given more obviously when ordering a probe to
self-destruct (bug #586), from Nic.
- Shipyard "Combat Energy" changed to reflect the recharge rate (bug #522). - Shipyard "Combat Energy" changed to reflect the recharge rate (bug #522).
Also, some cleanups. Thanks and apologies to Nic. Also, some cleanups. Thanks and apologies to Nic.
- Added lots of debugging functions, SvdB - Added lots of debugging functions, SvdB
+9
View File
@@ -22,6 +22,7 @@
QUEUE disp_q; QUEUE disp_q;
SIZE battle_counter; SIZE battle_counter;
BOOLEAN instantVictory;
static void static void
ProcessInput (void) ProcessInput (void)
@@ -232,6 +233,14 @@ Battle (void)
BattleSong (FALSE); BattleSong (FALSE);
num_ships = InitShips (); num_ships = InitShips ();
if (instantVictory)
{
num_ships = 0; // no ships were harmed in the making of this battle
battle_counter = 1; // a winner is you!
instantVictory = FALSE;
}
if (num_ships) if (num_ships)
{ {
BATTLE_STATE bs; BATTLE_STATE bs;
+3 -9
View File
@@ -201,17 +201,11 @@ CombatIsInevitable (RESPONSE_REF R)
} }
else if (PLAYER_SAID (R, destruct_code)) else if (PLAYER_SAID (R, destruct_code))
{ {
COUNT race_bounty[] = extern BOOLEAN instantVictory;
{
RACE_SHIP_COST
};
NPCPhrase (DESTRUCT_SEQUENCE); NPCPhrase (DESTRUCT_SEQUENCE);
instantVictory = TRUE;
LockMutex (GraphicsLock); SET_GAME_STATE (BATTLE_SEGUE, 1);
DeltaSISGauges (0, 0, race_bounty[SLYLANDRO_SHIP] >> 3);
UnlockMutex (GraphicsLock);
SET_GAME_STATE (BATTLE_SEGUE, 0);
} }
else else
{ {