Fixed compiling error, cleanup
This commit is contained in:
parent
53b4fff082
commit
d3a928a695
2 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue