summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-29 01:24:49 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-29 01:24:49 +0300
commitca130a19b36a78c6a23aa56c6ea82eaa187b0a06 (patch)
treea22f311c5698f3f4ee370c0f1d3cb05230a1da95 /src/game.cpp
parenteeffaaf3ab0593f815e772bfb523b9e7a94d45f5 (diff)
downloadmv-ca130a19b36a78c6a23aa56c6ea82eaa187b0a06.tar.gz
mv-ca130a19b36a78c6a23aa56c6ea82eaa187b0a06.tar.bz2
mv-ca130a19b36a78c6a23aa56c6ea82eaa187b0a06.tar.xz
mv-ca130a19b36a78c6a23aa56c6ea82eaa187b0a06.zip
Use time_t for time values.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game.cpp b/src/game.cpp
index e29eec872..789f87120 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -623,7 +623,7 @@ void Game::slowLogic()
BLOCK_START("Game::slowLogic")
if (localPlayer)
localPlayer->slowLogic();
- const int time = cur_time;
+ const time_t time = cur_time;
if (mTime != time)
{
if (valTest(Updated))
@@ -725,7 +725,7 @@ void Game::slowLogic()
void Game::adjustPerfomance()
{
FUNC_BLOCK("Game::adjustPerfomance", 1)
- const int time = cur_time;
+ const time_t time = cur_time;
if (mNextAdjustTime <= adjustDelay)
{
mNextAdjustTime = time + adjustDelay;
@@ -1123,7 +1123,7 @@ void Game::updateHistory(const SDL_Event &event)
bool old = false;
const InputActionT key = keyboard.getKeyIndex(event);
- const int time = cur_time;
+ const time_t time = cur_time;
int idx = -1;
for (int f = 0; f < MAX_LASTKEYS; f ++)
{
@@ -1178,7 +1178,7 @@ void Game::checkKeys()
if (!localPlayer || !settings.attackType)
return;
- const int time = cur_time;
+ const time_t time = cur_time;
for (int f = 0; f < MAX_LASTKEYS; f ++)
{
LastKey &lastKey = mLastKeys[f];