Use enum as enum instead of BYTE; typo in comment fixed.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1911 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -423,12 +423,12 @@ cleanup_hyperspace (void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enum
|
typedef enum
|
||||||
{
|
{
|
||||||
RANDOM_ENCOUNTER_TRANSITION,
|
RANDOM_ENCOUNTER_TRANSITION,
|
||||||
INTERPLANETARY_TRANSITION,
|
INTERPLANETARY_TRANSITION,
|
||||||
ARILOU_SPACE_TRANSITION
|
ARILOU_SPACE_TRANSITION
|
||||||
};
|
} TRANSITION_TYPE;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
unhyper_transition (PELEMENT ElementPtr)
|
unhyper_transition (PELEMENT ElementPtr)
|
||||||
@@ -447,7 +447,7 @@ unhyper_transition (PELEMENT ElementPtr)
|
|||||||
cleanup_hyperspace ();
|
cleanup_hyperspace ();
|
||||||
|
|
||||||
GLOBAL (CurrentActivity) &= ~IN_BATTLE;
|
GLOBAL (CurrentActivity) &= ~IN_BATTLE;
|
||||||
switch (ElementPtr->turn_wait)
|
switch ((TRANSITION_TYPE) ElementPtr->turn_wait)
|
||||||
{
|
{
|
||||||
case RANDOM_ENCOUNTER_TRANSITION:
|
case RANDOM_ENCOUNTER_TRANSITION:
|
||||||
SaveFlagshipState ();
|
SaveFlagshipState ();
|
||||||
@@ -558,8 +558,8 @@ unhyper_transition (PELEMENT ElementPtr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
init_transition (ELEMENTPTR ElementPtr0, ELEMENTPTR ElementPtr1, BYTE
|
init_transition (ELEMENTPTR ElementPtr0, ELEMENTPTR ElementPtr1,
|
||||||
which_transition)
|
TRANSITION_TYPE which_transition)
|
||||||
{
|
{
|
||||||
SIZE dx, dy, num_turns;
|
SIZE dx, dy, num_turns;
|
||||||
STARSHIPPTR StarShipPtr;
|
STARSHIPPTR StarShipPtr;
|
||||||
@@ -572,7 +572,7 @@ init_transition (ELEMENTPTR ElementPtr0, ELEMENTPTR ElementPtr1, BYTE
|
|||||||
ElementPtr1->state_flags |= NONSOLID;
|
ElementPtr1->state_flags |= NONSOLID;
|
||||||
ElementPtr1->preprocess_func = unhyper_transition;
|
ElementPtr1->preprocess_func = unhyper_transition;
|
||||||
ElementPtr1->postprocess_func = NULL_PTR;
|
ElementPtr1->postprocess_func = NULL_PTR;
|
||||||
ElementPtr1->turn_wait = which_transition;
|
ElementPtr1->turn_wait = (BYTE) which_transition;
|
||||||
|
|
||||||
GetElementStarShip (ElementPtr1, &StarShipPtr);
|
GetElementStarShip (ElementPtr1, &StarShipPtr);
|
||||||
if ((num_turns = GetFrameCount (ElementPtr1->next.image.frame)
|
if ((num_turns = GetFrameCount (ElementPtr1->next.image.frame)
|
||||||
@@ -1385,7 +1385,7 @@ SeedUniverse (void)
|
|||||||
STAR_DESC SD[2];
|
STAR_DESC SD[2];
|
||||||
// This array is filled with the STAR_DESC's of
|
// This array is filled with the STAR_DESC's of
|
||||||
// QuasiSpace portals that need to be taken into account.
|
// QuasiSpace portals that need to be taken into account.
|
||||||
// i is set the the number of active portals (max 2).
|
// i is set to the number of active portals (max 2).
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
if (portalCounter)
|
if (portalCounter)
|
||||||
|
|||||||
Reference in New Issue
Block a user