diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-21 19:09:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-21 22:43:11 +0300 |
commit | 5a392e77e1d77becd1ada0bdf3984c7260b8e287 (patch) | |
tree | 39d242518822dfa88f4a01508fada81d9bec26e2 /src/client.cpp | |
parent | aa68511ad3d339be8c8f42fc6c083b696d8e687b (diff) | |
download | mv-5a392e77e1d77becd1ada0bdf3984c7260b8e287.tar.gz mv-5a392e77e1d77becd1ada0bdf3984c7260b8e287.tar.bz2 mv-5a392e77e1d77becd1ada0bdf3984c7260b8e287.tar.xz mv-5a392e77e1d77becd1ada0bdf3984c7260b8e287.zip |
Add software mode compoundsprite update delay.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 7 |
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 |