diff options
author | Nathan Vance <nathav63@gmail.com> | 2015-03-19 17:47:35 -0400 |
---|---|---|
committer | Nathan Vance <nathav63@gmail.com> | 2015-03-19 17:47:35 -0400 |
commit | 6946460b7752ddd9b4f77ff4d28dbff9bda247b1 (patch) | |
tree | 8b1f0cb15e4163f2dd77deed3718dec50b908b2e /player_turn.c | |
parent | Fixed bug causing trade to print incorrectly (diff) | |
download | 7w-6946460b7752ddd9b4f77ff4d28dbff9bda247b1.tar.gz 7w-6946460b7752ddd9b4f77ff4d28dbff9bda247b1.tar.bz2 7w-6946460b7752ddd9b4f77ff4d28dbff9bda247b1.zip |
ui and trading bug fixes
Diffstat (limited to 'player_turn.c')
-rw-r--r-- | player_turn.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |