From e3195c56103c18bc13b1affc3ff83ad69bf77fee Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 25 Oct 2009 13:02:41 -0600 Subject: Fix screenshot making --- src/game.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 6ce3a1e8..15d70adc 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -402,14 +402,16 @@ static bool saveScreenshot() do { screenshotCount++; + filenameSuffix.str(""); filename.str(""); #if (defined __USE_UNIX98 || defined __FreeBSD__) - filename << getHomeDirectory(); + filename << getHomeDirectory() << "/"; #elif defined __APPLE__ filename << PHYSFS_getUserDir(); filename << "Desktop/"; #endif - filename << "Mana_Screenshot_" << screenshotCount << ".png"; + filenameSuffix << "Mana_Screenshot_" << screenshotCount << ".png"; + filename << filenameSuffix.str(); testExists.open(filename.str().c_str(), std::ios::in); found = !testExists.is_open(); testExists.close(); @@ -421,7 +423,7 @@ static bool saveScreenshot() { std::stringstream chatlogentry; // TODO: Make it one complete gettext string below - chatlogentry << _("Screenshot saved to ~/") << filenameSuffix.str(); + chatlogentry << _("Screenshot saved as ") << filenameSuffix.str(); localChatTab->chatLog(chatlogentry.str(), BY_SERVER); } else -- cgit v1.2.3-70-g09d2