File tree 2 files changed +10
-11
lines changed
2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -57,18 +57,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
57
57
#define SETUP_ANIM_UPDATE LL_CHG_BASE << 0
58
58
59
59
// loop id's
60
- #define SETUP_ANIM 0
61
- #define SETUP_JOURNEY 1
62
- #define SETUP_DIFFICULTY 2
63
- #define SETUP_CREDITS 3
64
- #define SETUP_CONTINUE 4
60
+ typedef enum {
61
+ SETUP_JOURNEY ,
62
+ SETUP_DIFFICULTY ,
63
+ SETUP_CREDITS ,
64
+ SETUP_CONTINUE
65
+ } SetupMode ;
65
66
66
67
// Prototypes
67
68
void setup_loop (void );
68
69
void journey_credits_done (void );
69
70
errtype journey_credits_func (uchar draw_stuff );
70
71
71
72
// Globals
72
- extern int setup_mode ;
73
+ extern SetupMode setup_mode ;
73
74
74
75
#endif // __SETPLOOP_H
Original file line number Diff line number Diff line change @@ -103,8 +103,8 @@ uiSlab setup_slab;
103
103
LGRegion setup_root_region ;
104
104
uchar play_intro_anim ;
105
105
uchar save_game_exists = FALSE;
106
- int setup_mode ;
107
- int last_setup_mode ;
106
+ SetupMode setup_mode ;
107
+ SetupMode last_setup_mode ;
108
108
int intro_num ;
109
109
int splash_num ;
110
110
int diff_sum = 0 ;
@@ -1516,7 +1516,6 @@ void setup_loop(void)
1516
1516
case SETUP_DIFFICULTY : difficulty_draw (draw_stuff ); break ;
1517
1517
case SETUP_JOURNEY : journey_draw (draw_stuff ); break ;
1518
1518
case SETUP_CONTINUE : journey_continue_func (draw_stuff ); break ;
1519
- case SETUP_ANIM : break ; // FIXME: What should this do?
1520
1519
case SETUP_CREDITS : journey_credits_func (draw_stuff ); break ;
1521
1520
}
1522
1521
}
@@ -1585,13 +1584,12 @@ void setup_start(void)
1585
1584
if (!save_game_exists && start_first_time )
1586
1585
{
1587
1586
play_intro_anim = TRUE;
1588
- setup_mode = SETUP_ANIM ;
1589
1587
}
1590
1588
else
1591
1589
{
1592
1590
play_intro_anim = FALSE;
1593
- setup_mode = SETUP_JOURNEY ;
1594
1591
}
1592
+ setup_mode = SETUP_JOURNEY ;
1595
1593
}
1596
1594
1597
1595
if (!start_first_time ) closedown_game (TRUE);
You can’t perform that action at this time.
0 commit comments