Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/gameserver.h')
-rw-r--r--src/core/gameserver.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/gameserver.h b/src/core/gameserver.h
index daf1abb..f05e6c6 100644
--- a/src/core/gameserver.h
+++ b/src/core/gameserver.h
@@ -38,6 +38,9 @@ public:
/// show the current time
void showtime();
+ /// current server game time
+ inline float time() const { return server_time; }
+
/*----- mutators -------------------------------------------------- */
/// is called when a player connects to the game server