Validate with enter (not space)

This commit is contained in:
Yorick Barbanneau 2021-10-22 00:37:38 +02:00
parent 9c47a74bc8
commit 83df11530c

View file

@ -66,7 +66,7 @@ void draw_ttt(WINDOW * w, s_tictactoe * u){
}
}
void set_next_player_move(s_move * m,p_view v)
void set_next_player_move(s_move * m, p_view v)
{
char * s="Player to play:%c";
int in_x = 3, out_x = 3;
@ -162,7 +162,7 @@ void set_next_player_move(s_move * m,p_view v)
if ( out_y < 6 ) { out_y+=2; }
}
break;
case ' ':
case '\n':
if ( v->p_uttt->inception_level == 1 ) {
m->outer_position = coord_to_elocation( out_y, out_x);
return;