Skip to content

Commit 92256b2

Browse files
committed
Never, EVER, allow users to control the transport in the campaign.
It will screw up the scripts.
1 parent c02d49f commit 92256b2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/display.c

+10-1
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,16 @@ void processMouseClickInput(void)
780780
}
781781
else
782782
{
783-
dealWithLMB();
783+
if (!bMultiPlayer && establishSelection(selectedPlayer) == SC_DROID_TRANSPORTER)
784+
{
785+
// Never, *ever* let user control the transport in SP games--it breaks the scripts!
786+
ASSERT(game.type == CAMPAIGN, "Game type was set incorrectly!");
787+
return;
788+
}
789+
else
790+
{
791+
dealWithLMB();
792+
}
784793
}
785794
}
786795

0 commit comments

Comments
 (0)