summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-21 19:09:31 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-21 22:43:11 +0300
commit5a392e77e1d77becd1ada0bdf3984c7260b8e287 (patch)
tree39d242518822dfa88f4a01508fada81d9bec26e2 /src/client.cpp
parentaa68511ad3d339be8c8f42fc6c083b696d8e687b (diff)
downloadplus-5a392e77e1d77becd1ada0bdf3984c7260b8e287.tar.gz
plus-5a392e77e1d77becd1ada0bdf3984c7260b8e287.tar.bz2
plus-5a392e77e1d77becd1ada0bdf3984c7260b8e287.tar.xz
plus-5a392e77e1d77becd1ada0bdf3984c7260b8e287.zip
Add software mode compoundsprite update delay.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index f9398281f..bdb43d0b9 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -225,6 +225,13 @@ int get_elapsed_time(int startTime)
}
}
+int get_elapsed_time1(int startTime)
+{
+ if (startTime <= tick_time)
+ return tick_time - startTime;
+ else
+ return tick_time + (MAX_TICK_VALUE - startTime);
+}
// This anonymous namespace hides whatever is inside from other modules.
namespace