aboutsummaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorNathan Vance <nathav63@gmail.com>2015-04-19 17:32:49 -0400
committerNathan Vance <nathav63@gmail.com>2015-04-19 17:32:49 -0400
commit0fde3a0bac550e4739757f1f60d0eb566b4007a1 (patch)
treed85e896228ee294a93a726fda448abbd98e7923e /data.c
parentFixed bug with spending more gold than in treasury (diff)
download7w-0fde3a0bac550e4739757f1f60d0eb566b4007a1.tar.gz
7w-0fde3a0bac550e4739757f1f60d0eb566b4007a1.tar.bz2
7w-0fde3a0bac550e4739757f1f60d0eb566b4007a1.zip
UI bug fixes
Diffstat (limited to 'data.c')
-rw-r--r--data.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/data.c b/data.c
index f9a8ba6..29be94d 100644
--- a/data.c
+++ b/data.c
@@ -147,7 +147,8 @@ void data_endturn()
if(totturns == 6) {
for(i = 0; i < numplayers; i++) {
if(data_getwonder(i) == 6 && data_getwonderside(i)*3+data_getwonderstages(i) >= 5) {
- player_turn(i);
+ if(data_isai(i)) ai_turn(i);
+ else player_turn(i);
data_flushbuffers();
} else data_discard((i+numplayers-turn)%numplayers, hands[i][0]);
}
bgstack15