summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index b91df9db..86a943d8 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -325,8 +325,16 @@ static bool saveScreenshot()
if (success)
{
+ std::string screenshotLink;
+#if SDL_VERSION_ATLEAST(2, 0, 14)
+ screenshotLink = strprintf("@@screenshot:%s|%s@@",
+ filenameSuffix.str().c_str(),
+ filenameSuffix.str().c_str());
+#else
+ screenshotLink = filenameSuffix.str();
+#endif
serverNotice(strprintf(_("Screenshot saved as %s"),
- filenameSuffix.str().c_str()));
+ screenshotLink.c_str()));
}
else
{