From 1a39ccc3088dd3fbc6da9571a17060cc50f432e4 Mon Sep 17 00:00:00 2001 From: Nathan Vance Date: Wed, 11 Mar 2015 22:31:44 -0400 Subject: Squelched some bugs, more to go! --- ai.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ai.c') diff --git a/ai.c b/ai.c index 5c0901a..7bb9f86 100644 --- a/ai.c +++ b/ai.c @@ -1,6 +1,6 @@ #include "7w.h" -int data_canafford(int p, int *cost); +int data_canafford(int p, int era, int card); int* data_gethand(int p); int data_numcards(int p); int data_getera(); @@ -23,7 +23,7 @@ int* ai_bestcard(int *hand, int player) //return card int card = 0; for(i = 0; hand[i] != -1 && i < 7; i++) { temp = weight_buildcard(data_getera(), hand[i], player); - if(! data_canafford(player, cards_getcost(data_getera(), hand[i]))) + if(! data_canafford(player, data_getera(), hand[i])) temp = 0; if(temp > max) { max = temp; -- cgit