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/render/screenshot.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/render') diff --git a/src/render/screenshot.cc b/src/render/screenshot.cc index 7b40156..f75cbe8 100644 --- a/src/render/screenshot.cc +++ b/src/render/screenshot.cc @@ -68,10 +68,10 @@ void Screenshot::save() // check if the date has changed since the previous screenshot; std::stringstream filenamestr; - int day, month, year, hour, min; + int day, month, year, hour, min, sec; int date_serial; - sys::get_datetime(year, month, day, hour, min); + sys::get_datetime(year, month, day, hour, min, sec); date_serial = (day - 1) + (month - 1) * 31 + (year - 2000) * 31 * 12; if (current_date != date_serial) { current_number = 0; -- cgit v1.2.3