diff options
-rw-r--r-- | src/game.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 66b6e3c4..270affb5 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -279,8 +279,23 @@ static bool saveScreenshot() { static unsigned int screenshotCount = 0; + // We don't want to show IP addresses in screenshots + const bool showip = player_node->getShowIp(); + if (showip) + { + player_node->setShowIp(false); + beingManager->updatePlayerNames(); + gui->draw(); + } + SDL_Surface *screenshot = graphics->getScreenshot(); + if (showip) + { + player_node->setShowIp(true); + beingManager->updatePlayerNames(); + } + // Search for an unused screenshot name std::stringstream filenameSuffix; std::stringstream filename; |