diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-04-04 09:25:53 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-04-04 09:25:53 +0000 |
commit | ff38d3f529c04bfa4e53dfd3603f834fce7746d1 (patch) | |
tree | e65c0cb4d6ef9472f9374534a720b2f55a23799a /src | |
parent | 1cc06e0fbbeb465a680379a426b863fec35df17f (diff) | |
download | mana-ff38d3f529c04bfa4e53dfd3603f834fce7746d1.tar.gz mana-ff38d3f529c04bfa4e53dfd3603f834fce7746d1.tar.bz2 mana-ff38d3f529c04bfa4e53dfd3603f834fce7746d1.tar.xz mana-ff38d3f529c04bfa4e53dfd3603f834fce7746d1.zip |
Corrected spelling of 'prize'.
Diffstat (limited to 'src')
-rw-r--r-- | src/game.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game.cpp b/src/game.cpp index ddd1266c..d8235384 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -307,7 +307,6 @@ bool saveScreenshot(SDL_Surface *screenshot) // Search for an unused screenshot name std::stringstream filename; - std::stringstream chatlogentry; std::fstream testExists; bool found = false; @@ -325,14 +324,14 @@ bool saveScreenshot(SDL_Surface *screenshot) if (ImageWriter::writePNG(screenshot, filename.str())) { + std::stringstream chatlogentry; chatlogentry << "Screenshot saved to " << filename.str().c_str(); chatWindow->chatLog(chatlogentry.str(), BY_SERVER); return true; } else { - chatlogentry << "Saving screenshot failed!"; - chatWindow->chatLog(chatlogentry.str(), BY_SERVER); + chatWindow->chatLog("Saving screenshot failed!", BY_SERVER); return false; } } |