Permalink
Browse files

Make debug messages work in campaign mode.

Fixes scavenger walls not exploding from scripts.

Fixes ticket:3194.
  • Loading branch information...
1 parent 1be61c6 commit 851b25cd399935849df5ab217a44597b2570951f @Cyp Cyp committed Feb 21, 2012
Showing with 7 additions and 7 deletions.
  1. +2 −2 src/multibot.cpp
  2. +1 −1 src/multigifts.cpp
  3. +2 −2 src/multiplay.cpp
  4. +2 −2 src/multistruct.cpp
View
@@ -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;
View
@@ -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;
View
@@ -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;
View
@@ -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;

0 comments on commit 851b25c

Please sign in to comment.