diff options
| author | Jan <> | 2016-02-09 22:44:40 +0100 |
|---|---|---|
| committer | Jan <> | 2016-02-09 22:44:40 +0100 |
| commit | 4bfa7b19b10afbac97ea887262ebac2f0759d156 (patch) | |
| tree | 33951be108e6ea231527e0ebe6dd67bd05d9d004 | |
| parent | 210552204ad900b1e338b3fe515b88be93996753 (diff) | |
| download | tempelschubsen-4bfa7b19b10afbac97ea887262ebac2f0759d156.tar.gz tempelschubsen-4bfa7b19b10afbac97ea887262ebac2f0759d156.zip | |
Do not rebuild setup message for each player
| -rw-r--r-- | TemplePushing.c4s/Misc.c4d/SetupMenu.c4d/Script.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/TemplePushing.c4s/Misc.c4d/SetupMenu.c4d/Script.c b/TemplePushing.c4s/Misc.c4d/SetupMenu.c4d/Script.c index ea902f8..6082ca5 100644 --- a/TemplePushing.c4s/Misc.c4d/SetupMenu.c4d/Script.c +++ b/TemplePushing.c4s/Misc.c4d/SetupMenu.c4d/Script.c @@ -202,11 +202,12 @@ private func KeepMenuOpen() private func ShowMessage() { - CustomMessage(Format("@%s", GetMessage()), this, setupPlayer, -LandscapeWidth()/5, 0, 0, 0, 0, MSG_NoLinebreak); + var message = Format("@%s", GetMessage()); + CustomMessage(message, this, setupPlayer, -LandscapeWidth() / 5, 0, 0, 0, 0, MSG_NoLinebreak); for (var i = 0; i < GetPlayerCount(); ++i) { if (GetPlayerByIndex(i) == setupPlayer) continue; - CustomMessage(Format("@%s", GetMessage()), this, GetPlayerByIndex(i), 0, 0, 0, 0, 0, MSG_NoLinebreak | MSG_Multiple); + CustomMessage(message, this, GetPlayerByIndex(i), 0, 0, 0, 0, 0, MSG_NoLinebreak | MSG_Multiple); } } |
