From 6946460b7752ddd9b4f77ff4d28dbff9bda247b1 Mon Sep 17 00:00:00 2001 From: Nathan Vance Date: Thu, 19 Mar 2015 17:47:35 -0400 Subject: ui and trading bug fixes --- player_turn.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'player_turn.c') diff --git a/player_turn.c b/player_turn.c index ba35953..f4bf19e 100644 --- a/player_turn.c +++ b/player_turn.c @@ -71,8 +71,10 @@ void player_turn(int player) case DOWN: cursor++; break; case RIGHT: focus++; + cursor = 0; break; case LEFT: focus--; + cursor = 0; break; case ENTER: if(player_build(focus, cursor, player, tradey)) { @@ -82,6 +84,7 @@ void player_turn(int player) } break; case '\t': focus = (focus+1)%(data_numplayers()+1); + cursor = 0; break; case 'h': posthelp(); break; -- cgit