Skip to content
Browse files

Do not complain to all players in game, on attempted loading of tank …

…on cyborg transport.

Announcing to everyone makes surprise attacks with transports harder, if accidentally
telling a tank to go onto a transport.
  • Loading branch information...
1 parent 2d938a0 commit 06e161a4d90a589549d5f3a3c64ac8abf07fc0ea @Cyp Cyp committed
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/order.cpp
View
9 src/order.cpp
@@ -793,12 +793,15 @@ void orderUpdateDroid(DROID *psDroid)
temp = (DROID*)psDroid->order.psObj;
// FIXME: since we now have 2 transporter types, we should fix this in the scripts for campaign
- if ((temp->droidType == DROID_TRANSPORTER) && !cyborgDroid(psDroid) && game.type != CAMPAIGN && bMultiPlayer)
+ if (temp->droidType == DROID_TRANSPORTER && !cyborgDroid(psDroid) && game.type != CAMPAIGN && bMultiPlayer)
{
psDroid->order = DroidOrder(DORDER_NONE);
actionDroid(psDroid, DACTION_NONE);
- audio_PlayTrack( ID_SOUND_BUILD_FAIL );
- addConsoleMessage(_("We can't do that! We must be a Cyborg unit to use a Cyborg Transport!"), DEFAULT_JUSTIFY, selectedPlayer);
+ if (psDroid->player == selectedPlayer)
+ {
+ audio_PlayTrack(ID_SOUND_BUILD_FAIL);
+ addConsoleMessage(_("We can't do that! We must be a Cyborg unit to use a Cyborg Transport!"), DEFAULT_JUSTIFY, selectedPlayer);
+ }
}
else
{

0 comments on commit 06e161a

Please sign in to comment.
Something went wrong with that request. Please try again.