(svn r10246) -Fix (r10297): some forgotten money conversions and truncation issues. Thanks to benc for providing the patch.
This commit is contained in:
@@ -97,7 +97,6 @@ static void AiNew_State_Nothing(Player *p)
|
||||
// - Build HQ
|
||||
static void AiNew_State_WakeUp(Player *p)
|
||||
{
|
||||
int32 money;
|
||||
int c;
|
||||
assert(p->ainew.state == AI_STATE_WAKE_UP);
|
||||
// First, check if we have a HQ
|
||||
@@ -111,7 +110,7 @@ static void AiNew_State_WakeUp(Player *p)
|
||||
return;
|
||||
}
|
||||
|
||||
money = p->player_money - AI_MINIMUM_MONEY;
|
||||
Money money = p->player_money - AI_MINIMUM_MONEY;
|
||||
|
||||
// Let's pick an action!
|
||||
if (p->ainew.action == AI_ACTION_NONE) {
|
||||
|
||||
Reference in New Issue
Block a user