summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
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