summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-12 20:16:57 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-12 20:16:57 +0300
commite53c7e4aa23a057f250d6a5d038b3f46b3f8db95 (patch)
tree69ef9b37c07244fbc3579b7bb4c0ae3516c8b837 /src/game.cpp
parent6c13867fcaa82514f9b113430a00a0db0921977f (diff)
downloadmanaplus-e53c7e4aa23a057f250d6a5d038b3f46b3f8db95.tar.gz
manaplus-e53c7e4aa23a057f250d6a5d038b3f46b3f8db95.tar.bz2
manaplus-e53c7e4aa23a057f250d6a5d038b3f46b3f8db95.tar.xz
manaplus-e53c7e4aa23a057f250d6a5d038b3f46b3f8db95.zip
Fix code style.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 929d828d9..352a6be44 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -541,8 +541,6 @@ bool Game::saveScreenshot(SDL_Surface *const screenshot,
// Search for an unused screenshot name
std::stringstream filename;
std::fstream testExists;
- bool found = false;
- static unsigned int screenshotCount = 0;
time_t rawtime;
char buffer [100];
@@ -567,6 +565,8 @@ bool Game::saveScreenshot(SDL_Surface *const screenshot,
serverName.c_str(), buffer);
}
+ bool found = false;
+ static unsigned int screenshotCount = 0;
do
{
screenshotCount++;