Skip to content

Commit

Permalink
Only complain to the transport's owner about not enough room in the t…
Browse files Browse the repository at this point in the history
…ransport.
  • Loading branch information
Cyp committed Jan 8, 2011
1 parent c8efe55 commit 64b8ffa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/transporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1416,8 +1416,11 @@ void transporterAddDroid(DROID *psTransporter, DROID *psDroidToAdd)
/* check for space */
if (!checkTransporterSpace(psTransporter, psDroidToAdd))
{
audio_PlayTrack( ID_SOUND_BUILD_FAIL );
addConsoleMessage(_("There is not enough room in the Transport!"), DEFAULT_JUSTIFY, selectedPlayer);
if (psTransporter->player == selectedPlayer)
{
audio_PlayTrack(ID_SOUND_BUILD_FAIL);
addConsoleMessage(_("There is not enough room in the Transport!"), DEFAULT_JUSTIFY, selectedPlayer);
}
return;
}
if (onMission)
Expand Down

0 comments on commit 64b8ffa

Please sign in to comment.