aboutsummaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorNathan Vance <nathav63@gmail.com>2015-03-12 10:13:16 -0400
committerNathan Vance <nathav63@gmail.com>2015-03-12 10:13:16 -0400
commit68c563442e7103e2472f148d05bc8c5bd385e661 (patch)
treed310be0c3fb76130a0ff9415f815fd3e95f10e4c /data.c
parentSquelched some bugs, more to go! (diff)
download7w-68c563442e7103e2472f148d05bc8c5bd385e661.tar.gz
7w-68c563442e7103e2472f148d05bc8c5bd385e661.tar.bz2
7w-68c563442e7103e2472f148d05bc8c5bd385e661.zip
Bug fixes
Diffstat (limited to 'data.c')
-rw-r--r--data.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/data.c b/data.c
index ded022a..e3c2cd6 100644
--- a/data.c
+++ b/data.c
@@ -186,11 +186,11 @@ int data_getnextwonderstage(int p)
int stage = data_getwonderstages(p);
int wonder = data_getwonder(p);
if(side == 0) {
- if(stage >= 2) return -1;
+ if(stage >= 3) return -1;
} else {
- if(wonder == 3 && stage >= 1) return -1;
- if(wonder != 9 && stage >= 2) return -1;
- if(wonder == 9 && stage >= 3) return -1;
+ if(wonder == 3 && stage >= 2) return -1;
+ if(wonder != 9 && stage >= 3) return -1;
+ if(wonder == 9 && stage >= 4) return -1;
}
return side*3+1+stage;
}
@@ -410,7 +410,7 @@ int data_iscouponed(int p, int era, int card)
int* coupons = cards_getcouponed(era, card);
int i;
for(i = 0; i < 3; i += 2) {
- if(coupons[1+1])
+ if(coupons[i+1])
if(data_hasbuilt(p, coupons[i], coupons[i+1])) return 1;
}
}
bgstack15