1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-09-15 17:28:07 -04:00

Shorten the enumeration names for the selection global variable

This commit is contained in:
John Zaitseff 2011-07-15 21:32:37 +10:00
parent e06f48070f
commit 97a9c6a35b
2 changed files with 7 additions and 7 deletions

View File

@ -895,7 +895,7 @@ void get_move (void)
if (quit_selected || abort_game) {
selection = SEL_QUIT_GAME;
selection = SEL_QUIT;
return;
} else {
selection = SEL_NONE;
@ -969,7 +969,7 @@ void get_move (void)
break;
case '2':
selection = SEL_MAKE_BANKRUPT;
selection = SEL_BANKRUPT;
curs_set(CURS_OFF);
wattron(curwin, A_BOLD);
@ -979,7 +979,7 @@ void get_move (void)
break;
case '3':
selection = SEL_SAVE_GAME;
selection = SEL_SAVE;
curs_set(CURS_OFF);
wattron(curwin, A_BOLD);
@ -991,7 +991,7 @@ void get_move (void)
case KEY_ESC:
case KEY_CTRL('C'):
case KEY_CTRL('\\'):
selection = SEL_QUIT_GAME;
selection = SEL_QUIT;
curs_set(CURS_OFF);
wattron(curwin, A_BOLD);

View File

@ -128,9 +128,9 @@ typedef enum sel_val {
SEL_MOVE_LAST = NUMBER_MOVES - 1,
SEL_MOVE_NUMBER_MOVES = NUMBER_MOVES,
SEL_MAKE_BANKRUPT, // Player wishes to give up
SEL_SAVE_GAME, // Save and end the game
SEL_QUIT_GAME, // Just end the game
SEL_BANKRUPT, // Player wishes to give up
SEL_SAVE, // Save and end the game
SEL_QUIT, // Just end the game
SEL_NONE = -1 // Nothing yet selected
} sel_val_t;