Fixed a bug introduced by my last patch. I forgot about the system-specific generate functions.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3306 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -61,7 +61,7 @@ GenerateDruuge (BYTE control)
|
|||||||
|
|
||||||
if (!GET_GAME_STATE (ROSY_SPHERE))
|
if (!GET_GAME_STATE (ROSY_SPHERE))
|
||||||
{
|
{
|
||||||
((PLANETSIDE_DESC*)pMenuState->ModuleFrame)->InTransit = TRUE;
|
pLanderInputState->planetSideDesc->InTransit = TRUE;
|
||||||
|
|
||||||
SET_GAME_STATE (ROSY_SPHERE, 1);
|
SET_GAME_STATE (ROSY_SPHERE, 1);
|
||||||
SET_GAME_STATE (ROSY_SPHERE_ON_SHIP, 1);
|
SET_GAME_STATE (ROSY_SPHERE_ON_SHIP, 1);
|
||||||
|
|||||||
@@ -69,9 +69,6 @@ GenerateAndrosynth (BYTE control)
|
|||||||
|= (1L << (i + 16));
|
|= (1L << (i + 16));
|
||||||
if (pSolarSysState->SysInfo.PlanetInfo.DiscoveryString)
|
if (pSolarSysState->SysInfo.PlanetInfo.DiscoveryString)
|
||||||
{
|
{
|
||||||
PLANETSIDE_DESC *pPSD;
|
|
||||||
|
|
||||||
pPSD = (PLANETSIDE_DESC*)pMenuState->ModuleFrame;
|
|
||||||
UnbatchGraphics ();
|
UnbatchGraphics ();
|
||||||
DoDiscoveryReport (MenuSounds);
|
DoDiscoveryReport (MenuSounds);
|
||||||
BatchGraphics ();
|
BatchGraphics ();
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ GeneratePkunk (BYTE control)
|
|||||||
|
|
||||||
if (!GET_GAME_STATE (CLEAR_SPINDLE))
|
if (!GET_GAME_STATE (CLEAR_SPINDLE))
|
||||||
{
|
{
|
||||||
((PLANETSIDE_DESC*)pMenuState->ModuleFrame)->InTransit = TRUE;
|
pLanderInputState->planetSideDesc->InTransit = TRUE;
|
||||||
|
|
||||||
SET_GAME_STATE (CLEAR_SPINDLE, 1);
|
SET_GAME_STATE (CLEAR_SPINDLE, 1);
|
||||||
SET_GAME_STATE (CLEAR_SPINDLE_ON_SHIP, 1);
|
SET_GAME_STATE (CLEAR_SPINDLE_ON_SHIP, 1);
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ generate_energy_nodes (void)
|
|||||||
SET_GAME_STATE (FOUND_PLUTO_SPATHI, 1);
|
SET_GAME_STATE (FOUND_PLUTO_SPATHI, 1);
|
||||||
pSolarSysState->SysInfo.PlanetInfo.ScanRetrieveMask[ENERGY_SCAN]
|
pSolarSysState->SysInfo.PlanetInfo.ScanRetrieveMask[ENERGY_SCAN]
|
||||||
&= ~(1L << 0);
|
&= ~(1L << 0);
|
||||||
((PLANETSIDE_DESC*)pMenuState->ModuleFrame)->InTransit = TRUE;
|
pLanderInputState->planetSideDesc->InTransit = TRUE;
|
||||||
}
|
}
|
||||||
else if (pSolarSysState->CurNode == (COUNT)~0)
|
else if (pSolarSysState->CurNode == (COUNT)~0)
|
||||||
pSolarSysState->CurNode = 1;
|
pSolarSysState->CurNode = 1;
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ GenerateSupox (BYTE control)
|
|||||||
|
|
||||||
if (!GET_GAME_STATE (ULTRON_CONDITION))
|
if (!GET_GAME_STATE (ULTRON_CONDITION))
|
||||||
{
|
{
|
||||||
((PLANETSIDE_DESC*)pMenuState->ModuleFrame)->InTransit = TRUE;
|
pLanderInputState->planetSideDesc->InTransit = TRUE;
|
||||||
|
|
||||||
SET_GAME_STATE (ULTRON_CONDITION, 1);
|
SET_GAME_STATE (ULTRON_CONDITION, 1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ GenerateShipVault (BYTE control)
|
|||||||
&= ~(1L << 0);
|
&= ~(1L << 0);
|
||||||
if (GET_GAME_STATE (SYREEN_SHUTTLE_ON_SHIP))
|
if (GET_GAME_STATE (SYREEN_SHUTTLE_ON_SHIP))
|
||||||
{
|
{
|
||||||
((PLANETSIDE_DESC*)pMenuState->ModuleFrame)->InTransit = TRUE;
|
pLanderInputState->planetSideDesc->InTransit = TRUE;
|
||||||
|
|
||||||
SET_GAME_STATE (SHIP_VAULT_UNLOCKED, 1);
|
SET_GAME_STATE (SHIP_VAULT_UNLOCKED, 1);
|
||||||
SET_GAME_STATE (SYREEN_SHUTTLE_ON_SHIP, 0);
|
SET_GAME_STATE (SYREEN_SHUTTLE_ON_SHIP, 0);
|
||||||
|
|||||||
@@ -311,13 +311,10 @@ GenerateVUX (BYTE control)
|
|||||||
& (1L << i))
|
& (1L << i))
|
||||||
&& !GET_GAME_STATE (VUX_BEAST))
|
&& !GET_GAME_STATE (VUX_BEAST))
|
||||||
{
|
{
|
||||||
PLANETSIDE_DESC *pPSD;
|
|
||||||
|
|
||||||
pPSD = (PLANETSIDE_DESC*)pMenuState->ModuleFrame;
|
|
||||||
UnbatchGraphics ();
|
UnbatchGraphics ();
|
||||||
DoDiscoveryReport (MenuSounds);
|
DoDiscoveryReport (MenuSounds);
|
||||||
BatchGraphics ();
|
BatchGraphics ();
|
||||||
pPSD->InTransit = TRUE;
|
pLanderInputState->planetSideDesc->InTransit = TRUE;
|
||||||
|
|
||||||
SET_GAME_STATE (VUX_BEAST, 1);
|
SET_GAME_STATE (VUX_BEAST, 1);
|
||||||
SET_GAME_STATE (VUX_BEAST_ON_SHIP, 1);
|
SET_GAME_STATE (VUX_BEAST_ON_SHIP, 1);
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ GenerateUrquanWreck (BYTE control)
|
|||||||
|
|
||||||
if (!GET_GAME_STATE (PORTAL_KEY))
|
if (!GET_GAME_STATE (PORTAL_KEY))
|
||||||
{
|
{
|
||||||
((PLANETSIDE_DESC*)pMenuState->ModuleFrame)->InTransit = TRUE;
|
pLanderInputState->planetSideDesc->InTransit = TRUE;
|
||||||
|
|
||||||
SET_GAME_STATE (PORTAL_KEY, 1);
|
SET_GAME_STATE (PORTAL_KEY, 1);
|
||||||
SET_GAME_STATE (PORTAL_KEY_ON_SHIP, 1);
|
SET_GAME_STATE (PORTAL_KEY_ON_SHIP, 1);
|
||||||
|
|||||||
@@ -48,31 +48,6 @@
|
|||||||
// ONE_SECOND.
|
// ONE_SECOND.
|
||||||
#define PLANET_SIDE_RATE (ONE_SECOND / 35)
|
#define PLANET_SIDE_RATE (ONE_SECOND / 35)
|
||||||
|
|
||||||
// This is a derived type from INPUT_STATE_DESC.
|
|
||||||
// Originally, the general MENU_STATE structure was used. Now, only the
|
|
||||||
// fields which are relevant are put in here. In the MENU_STATE structure,
|
|
||||||
// these fields were reused for all sorts of purposes, which had nothing
|
|
||||||
// to do with what the name suggests. Not all fields have been renamed yet
|
|
||||||
// in LanderInputState.
|
|
||||||
typedef struct LanderInputState LanderInputState;
|
|
||||||
struct LanderInputState {
|
|
||||||
BOOLEAN (*InputFunc) (LanderInputState *pMS);
|
|
||||||
COUNT MenuRepeatDelay;
|
|
||||||
|
|
||||||
PLANETSIDE_DESC *planetSideDesc;
|
|
||||||
SIZE Initialized;
|
|
||||||
MENU_STATE *scanInputState;
|
|
||||||
|
|
||||||
// The following fields need to be renamed:
|
|
||||||
BYTE CurState;
|
|
||||||
// High byte: ?
|
|
||||||
// Low byte: ?
|
|
||||||
SIZE delta_item;
|
|
||||||
// High byte: ?
|
|
||||||
// Low byte: bits 0-6: current lander crew count
|
|
||||||
// bit 7: set if damage was prevented by a shield
|
|
||||||
};
|
|
||||||
|
|
||||||
LanderInputState *pLanderInputState;
|
LanderInputState *pLanderInputState;
|
||||||
// Temporary, to replace the references to pMenuState.
|
// Temporary, to replace the references to pMenuState.
|
||||||
// Eventually, this should become a parameter to everything which
|
// Eventually, this should become a parameter to everything which
|
||||||
|
|||||||
@@ -53,6 +53,37 @@ typedef struct
|
|||||||
BYTE FireChance;
|
BYTE FireChance;
|
||||||
} PLANETSIDE_DESC;
|
} PLANETSIDE_DESC;
|
||||||
|
|
||||||
|
// This is a derived type from INPUT_STATE_DESC.
|
||||||
|
// Originally, the general MENU_STATE structure was used. Now, only the
|
||||||
|
// fields which are relevant are put in here. In the MENU_STATE structure,
|
||||||
|
// these fields were reused for all sorts of purposes, which had nothing
|
||||||
|
// to do with what the name suggests. Not all fields have been renamed yet
|
||||||
|
// in LanderInputState.
|
||||||
|
typedef struct LanderInputState LanderInputState;
|
||||||
|
struct LanderInputState {
|
||||||
|
BOOLEAN (*InputFunc) (LanderInputState *pMS);
|
||||||
|
COUNT MenuRepeatDelay;
|
||||||
|
|
||||||
|
PLANETSIDE_DESC *planetSideDesc;
|
||||||
|
SIZE Initialized;
|
||||||
|
MENU_STATE *scanInputState;
|
||||||
|
|
||||||
|
// The following fields need to be renamed:
|
||||||
|
BYTE CurState;
|
||||||
|
// High byte: ?
|
||||||
|
// Low byte: ?
|
||||||
|
SIZE delta_item;
|
||||||
|
// High byte: ?
|
||||||
|
// Low byte: bits 0-6: current lander crew count
|
||||||
|
// bit 7: set if damage was prevented by a shield
|
||||||
|
};
|
||||||
|
|
||||||
|
extern LanderInputState *pLanderInputState;
|
||||||
|
// Temporary, to replace the references to pMenuState.
|
||||||
|
// Eventually, this should become a parameter to everything which
|
||||||
|
// needs it.
|
||||||
|
|
||||||
|
|
||||||
extern CONTEXT ScanContext;
|
extern CONTEXT ScanContext;
|
||||||
extern MUSIC_REF LanderMusic;
|
extern MUSIC_REF LanderMusic;
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ enum
|
|||||||
static BYTE
|
static BYTE
|
||||||
BlueDistribution (BYTE which_world)
|
BlueDistribution (BYTE which_world)
|
||||||
{
|
{
|
||||||
BYTE PlanetDistribution[NUMBER_OF_PLANET_TYPES] =
|
const BYTE PlanetDistribution[NUMBER_OF_PLANET_TYPES] =
|
||||||
{
|
{
|
||||||
PLANET_ALWAYS, /* OOLITE_WORLD */
|
PLANET_ALWAYS, /* OOLITE_WORLD */
|
||||||
PLANET_ALWAYS, /* YTTRIC_WORLD */
|
PLANET_ALWAYS, /* YTTRIC_WORLD */
|
||||||
@@ -108,7 +108,7 @@ BlueDistribution (BYTE which_world)
|
|||||||
static BYTE
|
static BYTE
|
||||||
GreenDistribution (BYTE which_world)
|
GreenDistribution (BYTE which_world)
|
||||||
{
|
{
|
||||||
BYTE PlanetDistribution[NUMBER_OF_PLANET_TYPES] =
|
const BYTE PlanetDistribution[NUMBER_OF_PLANET_TYPES] =
|
||||||
{
|
{
|
||||||
PLANET_NEVER, /* OOLITE_WORLD */
|
PLANET_NEVER, /* OOLITE_WORLD */
|
||||||
PLANET_NEVER, /* YTTRIC_WORLD */
|
PLANET_NEVER, /* YTTRIC_WORLD */
|
||||||
@@ -179,7 +179,7 @@ GreenDistribution (BYTE which_world)
|
|||||||
static BYTE
|
static BYTE
|
||||||
OrangeDistribution (BYTE which_world)
|
OrangeDistribution (BYTE which_world)
|
||||||
{
|
{
|
||||||
BYTE PlanetDistribution[NUMBER_OF_PLANET_TYPES] =
|
const BYTE PlanetDistribution[NUMBER_OF_PLANET_TYPES] =
|
||||||
{
|
{
|
||||||
PLANET_NEVER, /* OOLITE_WORLD */
|
PLANET_NEVER, /* OOLITE_WORLD */
|
||||||
PLANET_NEVER, /* YTTRIC_WORLD */
|
PLANET_NEVER, /* YTTRIC_WORLD */
|
||||||
@@ -250,7 +250,7 @@ OrangeDistribution (BYTE which_world)
|
|||||||
static BYTE
|
static BYTE
|
||||||
RedDistribution (BYTE which_world)
|
RedDistribution (BYTE which_world)
|
||||||
{
|
{
|
||||||
BYTE PlanetDistribution[NUMBER_OF_PLANET_TYPES] =
|
const BYTE PlanetDistribution[NUMBER_OF_PLANET_TYPES] =
|
||||||
{
|
{
|
||||||
PLANET_NEVER, /* OOLITE_WORLD */
|
PLANET_NEVER, /* OOLITE_WORLD */
|
||||||
PLANET_NEVER, /* YTTRIC_WORLD */
|
PLANET_NEVER, /* YTTRIC_WORLD */
|
||||||
@@ -321,7 +321,7 @@ RedDistribution (BYTE which_world)
|
|||||||
static BYTE
|
static BYTE
|
||||||
WhiteDistribution (BYTE which_world)
|
WhiteDistribution (BYTE which_world)
|
||||||
{
|
{
|
||||||
BYTE PlanetDistribution[NUMBER_OF_PLANET_TYPES] =
|
const BYTE PlanetDistribution[NUMBER_OF_PLANET_TYPES] =
|
||||||
{
|
{
|
||||||
PLANET_ALWAYS, /* OOLITE_WORLD */
|
PLANET_ALWAYS, /* OOLITE_WORLD */
|
||||||
PLANET_ALWAYS, /* YTTRIC_WORLD */
|
PLANET_ALWAYS, /* YTTRIC_WORLD */
|
||||||
@@ -392,7 +392,7 @@ WhiteDistribution (BYTE which_world)
|
|||||||
static BYTE
|
static BYTE
|
||||||
YellowDistribution (BYTE which_world)
|
YellowDistribution (BYTE which_world)
|
||||||
{
|
{
|
||||||
BYTE PlanetDistribution[NUMBER_OF_PLANET_TYPES] =
|
const BYTE PlanetDistribution[NUMBER_OF_PLANET_TYPES] =
|
||||||
{
|
{
|
||||||
PLANET_NEVER, /* OOLITE_WORLD */
|
PLANET_NEVER, /* OOLITE_WORLD */
|
||||||
PLANET_NEVER, /* YTTRIC_WORLD */
|
PLANET_NEVER, /* YTTRIC_WORLD */
|
||||||
|
|||||||
@@ -1267,7 +1267,6 @@ IP_frame (void)
|
|||||||
select = PulsedInputState.menu[KEY_MENU_SELECT];
|
select = PulsedInputState.menu[KEY_MENU_SELECT];
|
||||||
IP_input_state = (cancel << 1) | select;
|
IP_input_state = (cancel << 1) | select;
|
||||||
}
|
}
|
||||||
// JournalInput (InputState);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user