From 0d0206dd0a9a1bb53913a76b0ae6179bb627074e Mon Sep 17 00:00:00 2001 From: Nathan Vance Date: Wed, 11 Mar 2015 20:51:33 -0400 Subject: Implemented basic ai --- player_turn.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'player_turn.c') diff --git a/player_turn.c b/player_turn.c index 1759c5f..bd9e805 100644 --- a/player_turn.c +++ b/player_turn.c @@ -67,10 +67,8 @@ void player_turn(int player) case ENTER: if(player_build(focus, cursor, player)) { trade_commit(player); - player++; - cursor = 0; - focus = data_numplayers(); clearmessage(); + return; } break; case '\t': focus = (focus+1)%(data_numplayers()+1); @@ -79,10 +77,6 @@ void player_turn(int player) break; default: break; } - if(player >= data_numplayers()) { - data_endturn(); - player = 0; - } if(focus < 0) focus = data_numplayers(); focus = focus%(data_numplayers()+1); if(focus == data_numplayers()) { -- cgit