From 556bbc011ba9e43a0d52ce0a713f3730bf1419d3 Mon Sep 17 00:00:00 2001 From: vexed Date: Mon, 26 Mar 2012 00:20:33 -0400 Subject: [PATCH] Don't bother even checking to send maps if not host. --- src/multiint.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/multiint.cpp b/src/multiint.cpp index aecedeabd..da8ea39c6 100644 --- a/src/multiint.cpp +++ b/src/multiint.cpp @@ -3496,13 +3496,15 @@ void runMultiOptions(void) char str[3]; frontendMultiMessages(); - - for (i = 0; i < MAX_PLAYERS; i++) + if (NetPlay.isHost) { - // send it for each player that needs it - if (NetPlay.players[i].wzFile.isSending) + for (i = 0; i < MAX_PLAYERS; i++) { - sendMap(); + // send it for each player that needs it + if (NetPlay.players[i].wzFile.isSending) + { + sendMap(); + } } }