diff options
author | Nathan Vance <nathav63@gmail.com> | 2015-03-12 10:13:16 -0400 |
---|---|---|
committer | Nathan Vance <nathav63@gmail.com> | 2015-03-12 10:13:16 -0400 |
commit | 68c563442e7103e2472f148d05bc8c5bd385e661 (patch) | |
tree | d310be0c3fb76130a0ff9415f815fd3e95f10e4c /data.c | |
parent | Squelched some bugs, more to go! (diff) | |
download | 7w-68c563442e7103e2472f148d05bc8c5bd385e661.tar.gz 7w-68c563442e7103e2472f148d05bc8c5bd385e661.tar.bz2 7w-68c563442e7103e2472f148d05bc8c5bd385e661.zip |
Bug fixes
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; } } |