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:
|
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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user