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:
@@ -1,4 +1,6 @@
|
||||
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).
|
||||
Also, some cleanups. Thanks and apologies to Nic.
|
||||
- Added lots of debugging functions, SvdB
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
QUEUE disp_q;
|
||||
SIZE battle_counter;
|
||||
BOOLEAN instantVictory;
|
||||
|
||||
static void
|
||||
ProcessInput (void)
|
||||
@@ -232,6 +233,14 @@ Battle (void)
|
||||
BattleSong (FALSE);
|
||||
|
||||
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)
|
||||
{
|
||||
BATTLE_STATE bs;
|
||||
|
||||
@@ -201,17 +201,11 @@ CombatIsInevitable (RESPONSE_REF R)
|
||||
}
|
||||
else if (PLAYER_SAID (R, destruct_code))
|
||||
{
|
||||
COUNT race_bounty[] =
|
||||
{
|
||||
RACE_SHIP_COST
|
||||
};
|
||||
extern BOOLEAN instantVictory;
|
||||
|
||||
NPCPhrase (DESTRUCT_SEQUENCE);
|
||||
|
||||
LockMutex (GraphicsLock);
|
||||
DeltaSISGauges (0, 0, race_bounty[SLYLANDRO_SHIP] >> 3);
|
||||
UnlockMutex (GraphicsLock);
|
||||
SET_GAME_STATE (BATTLE_SEGUE, 0);
|
||||
instantVictory = TRUE;
|
||||
SET_GAME_STATE (BATTLE_SEGUE, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user