Fixed compiling error, cleanup

This commit is contained in:
jsalmon3 2003-02-12 17:39:22 +00:00
parent 53b4fff082
commit d3a928a695
2 changed files with 6 additions and 6 deletions

View file

@ -92,7 +92,8 @@ global void HandleActionTrain(Unit* unit)
if( player->Food<
player->NumFoodUnits+unit->Data.Train.What[0]->Demand ) {
NotifyPlayer(player,NotifyYellow,unit->X,unit->Y,"Not enough food...build more farms.");
NotifyPlayer(player,NotifyYellow,unit->X,unit->Y,
"Not enough food...build more farms.");
if( unit->Player->Ai ) {
AiNeedMoreFarms(unit,unit->Orders[0].Type);
}
@ -119,8 +120,8 @@ global void HandleActionTrain(Unit* unit)
nunit->TTL=GameCycle+type->DecayRate*6*CYCLES_PER_SECOND;
}
NotifyPlayer(player, NotifyYellow, nunit->X, nunit->Y, "New %s ready",
nunit->Type->Name);
NotifyPlayer(player,NotifyYellow,nunit->X,nunit->Y,
"New %s ready",nunit->Type->Name);
PlayUnitSound(nunit,VoiceReady);
if( unit->Player->Ai ) {
AiTrainingComplete(unit,nunit);

View file

@ -79,9 +79,8 @@ global void HandleActionUpgradeTo(Unit* unit)
player->UnitTypesCount[unit->Type->Type]++;
UpdateForNewUnit(unit,1);
SetMessageEvent(player,NotifyGreen,unit->X, unit->Y,
"Upgrade to %s complete", unit->Type->Name );
NotifyPlayer(player,NotifyGreen,unit->X,unit->Y,
"Upgrade to %s complete",unit->Type->Name );
if( unit->Player->Ai ) {
AiUpgradeToComplete(unit,type);
}