From 851b25cd399935849df5ab217a44597b2570951f Mon Sep 17 00:00:00 2001 From: Cyp Date: Tue, 21 Feb 2012 20:41:15 +0100 Subject: [PATCH] Make debug messages work in campaign mode. Fixes scavenger walls not exploding from scripts. Fixes ticket:3194. --- src/multibot.cpp | 4 ++-- src/multigifts.cpp | 2 +- src/multiplay.cpp | 4 ++-- src/multistruct.cpp | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/multibot.cpp b/src/multibot.cpp index b7cb48e7d..6c247cc40 100644 --- a/src/multibot.cpp +++ b/src/multibot.cpp @@ -328,7 +328,7 @@ bool recvDroid(NETQUEUE queue) } NETend(); - if (!getDebugMappingStatus()) + if (!getDebugMappingStatus() && bMultiPlayer) { debug(LOG_WARNING, "Failed to add droid for player %u.", NetPlay.players[queue.index].position); return false; @@ -723,7 +723,7 @@ bool recvDestroyDroid(NETQUEUE queue) } NETend(); - if (!getDebugMappingStatus()) + if (!getDebugMappingStatus() && bMultiPlayer) { debug(LOG_WARNING, "Failed to remove droid for player %u.", NetPlay.players[queue.index].position); return false; diff --git a/src/multigifts.cpp b/src/multigifts.cpp index 5a3ef147a..7800bf064 100644 --- a/src/multigifts.cpp +++ b/src/multigifts.cpp @@ -585,7 +585,7 @@ void recvMultiPlayerFeature(NETQUEUE queue) } NETend(); - if (!getDebugMappingStatus()) + if (!getDebugMappingStatus() && bMultiPlayer) { debug(LOG_WARNING, "Failed to add feature for player %u.", NetPlay.players[queue.index].position); return; diff --git a/src/multiplay.cpp b/src/multiplay.cpp index 4e7ec4f7b..2a647035a 100644 --- a/src/multiplay.cpp +++ b/src/multiplay.cpp @@ -825,7 +825,7 @@ static bool recvResearch(NETQUEUE queue) NETuint32_t(&index); NETend(); - if (!getDebugMappingStatus()) + if (!getDebugMappingStatus() && bMultiPlayer) { debug(LOG_WARNING, "Failed to finish research for player %u.", NetPlay.players[queue.index].position); return false; @@ -1532,7 +1532,7 @@ bool recvDestroyFeature(NETQUEUE queue) NETuint32_t(&id); NETend(); - if (!getDebugMappingStatus()) + if (!getDebugMappingStatus() && bMultiPlayer) { debug(LOG_WARNING, "Failed to remove feature for player %u.", NetPlay.players[queue.index].position); return false; diff --git a/src/multistruct.cpp b/src/multistruct.cpp index bb10d8a46..437357c6f 100644 --- a/src/multistruct.cpp +++ b/src/multistruct.cpp @@ -89,7 +89,7 @@ bool recvBuildFinished(NETQUEUE queue) ASSERT_OR_RETURN(false, player < MAX_PLAYERS, "invalid player %u", player); - if (!getDebugMappingStatus()) + if (!getDebugMappingStatus() && bMultiPlayer) { debug(LOG_WARNING, "Failed to add structure for player %u.", NetPlay.players[queue.index].position); return false; @@ -183,7 +183,7 @@ bool recvDestroyStructure(NETQUEUE queue) NETuint32_t(&structID); NETend(); - if (!getDebugMappingStatus()) + if (!getDebugMappingStatus() && bMultiPlayer) { debug(LOG_WARNING, "Failed to remove structure for player %u.", NetPlay.players[queue.index].position); return false;