summaryrefslogtreecommitdiff
path: root/src/progs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-11-18 09:38:55 +0300
committerAndrei Karas <akaras@inbox.ru>2019-11-18 09:38:55 +0300
commite22b2566130eadc148c7aa89ee3cb429b22f1dfb (patch)
tree396779c21274bcb09d0e96cc14c817f525074b26 /src/progs
parent1e62e24155ec46938338c5f94c6df02013140ef4 (diff)
downloadplus-e22b2566130eadc148c7aa89ee3cb429b22f1dfb.tar.gz
plus-e22b2566130eadc148c7aa89ee3cb429b22f1dfb.tar.bz2
plus-e22b2566130eadc148c7aa89ee3cb429b22f1dfb.tar.xz
plus-e22b2566130eadc148c7aa89ee3cb429b22f1dfb.zip
Fix warnings in gcc trunk
Diffstat (limited to 'src/progs')
-rw-r--r--src/progs/dyecmd/client.cpp4
-rw-r--r--src/progs/manaplus/client.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/progs/dyecmd/client.cpp b/src/progs/dyecmd/client.cpp
index 27aab8bb3..483451ed6 100644
--- a/src/progs/dyecmd/client.cpp
+++ b/src/progs/dyecmd/client.cpp
@@ -601,7 +601,7 @@ int Client::gameExec()
}
soundManager.logic();
- logic_count += k;
+ logic_count = logic_count + k;
if (gui != nullptr)
gui->slowLogic();
// if (mGame)
@@ -615,7 +615,7 @@ int Client::gameExec()
// Update the screen when application is visible, delay otherwise.
if (!WindowManager::getIsMinimized())
{
- frame_count++;
+ frame_count = frame_count + 1;
if (gui != nullptr)
gui->draw();
mainGraphics->updateScreen();
diff --git a/src/progs/manaplus/client.cpp b/src/progs/manaplus/client.cpp
index 439e3c94c..76d64221d 100644
--- a/src/progs/manaplus/client.cpp
+++ b/src/progs/manaplus/client.cpp
@@ -996,7 +996,7 @@ int Client::gameExec()
PERF_STAT(5);
- logic_count += k;
+ logic_count = logic_count + k;
if (gui != nullptr)
gui->slowLogic();
@@ -1671,7 +1671,7 @@ int Client::gameExec()
// Update the screen when application is visible, delay otherwise.
if (!WindowManager::getIsMinimized())
{
- frame_count++;
+ frame_count = frame_count + 1;
if (gui != nullptr)
gui->draw();
mainGraphics->updateScreen();