mirror of
https://git.zap.org.au/git/trader.git
synced 2025-01-03 14:57:41 -05:00
Shorten the enumeration names for the selection global variable
This commit is contained in:
parent
e06f48070f
commit
97a9c6a35b
@ -895,7 +895,7 @@ void get_move (void)
|
|||||||
|
|
||||||
|
|
||||||
if (quit_selected || abort_game) {
|
if (quit_selected || abort_game) {
|
||||||
selection = SEL_QUIT_GAME;
|
selection = SEL_QUIT;
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
selection = SEL_NONE;
|
selection = SEL_NONE;
|
||||||
@ -969,7 +969,7 @@ void get_move (void)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case '2':
|
case '2':
|
||||||
selection = SEL_MAKE_BANKRUPT;
|
selection = SEL_BANKRUPT;
|
||||||
|
|
||||||
curs_set(CURS_OFF);
|
curs_set(CURS_OFF);
|
||||||
wattron(curwin, A_BOLD);
|
wattron(curwin, A_BOLD);
|
||||||
@ -979,7 +979,7 @@ void get_move (void)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case '3':
|
case '3':
|
||||||
selection = SEL_SAVE_GAME;
|
selection = SEL_SAVE;
|
||||||
|
|
||||||
curs_set(CURS_OFF);
|
curs_set(CURS_OFF);
|
||||||
wattron(curwin, A_BOLD);
|
wattron(curwin, A_BOLD);
|
||||||
@ -991,7 +991,7 @@ void get_move (void)
|
|||||||
case KEY_ESC:
|
case KEY_ESC:
|
||||||
case KEY_CTRL('C'):
|
case KEY_CTRL('C'):
|
||||||
case KEY_CTRL('\\'):
|
case KEY_CTRL('\\'):
|
||||||
selection = SEL_QUIT_GAME;
|
selection = SEL_QUIT;
|
||||||
|
|
||||||
curs_set(CURS_OFF);
|
curs_set(CURS_OFF);
|
||||||
wattron(curwin, A_BOLD);
|
wattron(curwin, A_BOLD);
|
||||||
|
@ -128,9 +128,9 @@ typedef enum sel_val {
|
|||||||
SEL_MOVE_LAST = NUMBER_MOVES - 1,
|
SEL_MOVE_LAST = NUMBER_MOVES - 1,
|
||||||
SEL_MOVE_NUMBER_MOVES = NUMBER_MOVES,
|
SEL_MOVE_NUMBER_MOVES = NUMBER_MOVES,
|
||||||
|
|
||||||
SEL_MAKE_BANKRUPT, // Player wishes to give up
|
SEL_BANKRUPT, // Player wishes to give up
|
||||||
SEL_SAVE_GAME, // Save and end the game
|
SEL_SAVE, // Save and end the game
|
||||||
SEL_QUIT_GAME, // Just end the game
|
SEL_QUIT, // Just end the game
|
||||||
SEL_NONE = -1 // Nothing yet selected
|
SEL_NONE = -1 // Nothing yet selected
|
||||||
} sel_val_t;
|
} sel_val_t;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user