Skip to content

Commit

Permalink
Removed cancel option
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecWhite committed Aug 6, 2017
1 parent 613fd39 commit 16767cb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10882,14 +10882,13 @@ void game::chat()

nmenu.return_invalid = true;

int yell, yell_sentence, cancel;
int yell, yell_sentence;

nmenu.addentry( yell = i++, true, 'a', _( "Yell" ) );
nmenu.addentry( yell_sentence = i++, true, 'b', _( "Yell a sentence" ) );
nmenu.addentry( cancel = i++, true, 'q', _( "Cancel" ) );

nmenu.query();
if( nmenu.ret < 0 || nmenu.ret == cancel ) {
if( nmenu.ret < 0 ) {
return;
} else if( nmenu.ret == yell ) {
u.shout();
Expand Down

0 comments on commit 16767cb

Please sign in to comment.