From a255dbc032d15a4f5024bc60baa19c45ebceecc6 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 9 Feb 2011 16:01:17 +0000 Subject: added sv_collisionmargin Cvar and applied the value to mesh collisions, added seconds parameter to sys::get_datetime(), added con_timestamps Cvar, enabled console timestamps on the dedicated server by default. --- src/sys/sys.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/sys/sys.cc') diff --git a/src/sys/sys.cc b/src/sys/sys.cc index f4e915d..39700b9 100644 --- a/src/sys/sys.cc +++ b/src/sys/sys.cc @@ -180,7 +180,7 @@ void sleep(float seconds) #endif } -void get_datetime(int &year, int & month, int & day, int & hours, int & minutes) +void get_datetime(int &year, int & month, int & day, int & hours, int & minutes, int &seconds) { #ifndef _WIN32 struct ::tm localtime; @@ -193,6 +193,7 @@ void get_datetime(int &year, int & month, int & day, int & hours, int & minutes) hours = localtime.tm_hour; minutes = localtime.tm_min; + seconds = localtime.tm_sec; #else SYSTEMTIME localtime; ::GetLocalTime(&localtime); @@ -203,6 +204,7 @@ void get_datetime(int &year, int & month, int & day, int & hours, int & minutes) hours = localtime.wHour; minutes = localtime.wMinute; + seconds = localtime.wSecond; #endif } -- cgit v1.2.3