1.1 --- a/src/game.c Wed Aug 29 17:05:40 2018 +0200 1.2 +++ b/src/game.c Wed Aug 29 17:31:36 2018 +0200 1.3 @@ -235,8 +235,7 @@ 1.4 } else { 1.5 Move move; 1.6 int result = eval_move(gamestate, movestr, &move, curcolor); 1.7 - switch (result) { 1.8 - case VALID_MOVE_SYNTAX: 1.9 + if (result == VALID_MOVE_SYNTAX) { 1.10 result = validate_move(gamestate, &move); 1.11 if (result == VALID_MOVE_SEMANTICS) { 1.12 apply_move(gamestate, &move); 1.13 @@ -254,8 +253,7 @@ 1.14 } else { 1.15 eval_move_failed_msg(result); 1.16 } 1.17 - break; 1.18 - default: 1.19 + } else { 1.20 eval_move_failed_msg(result); 1.21 } 1.22 clrtoeol();