diff --git a/src/action/action_train.cpp b/src/action/action_train.cpp index 9e10392d4..dfb7f07f6 100644 --- a/src/action/action_train.cpp +++ b/src/action/action_train.cpp @@ -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); diff --git a/src/action/action_upgradeto.cpp b/src/action/action_upgradeto.cpp index d37b93724..12c7ff37b 100644 --- a/src/action/action_upgradeto.cpp +++ b/src/action/action_upgradeto.cpp @@ -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); }