I can see this being a problem:
As effor mentioned earlier, infinite time on a map could be a problem. I don't know what that would return if the map time is infinite.
I feel as though there should be some static time in minutes set by a config file. Three minutes is pretty good.
Code:
Float:map_getMinutesElapsed()
{
dbg_log(2, "%32s mp_timelimit: %f", "map_getMinutesElapsed(in/out)", get_cvar_float("mp_timelimit"));
return get_cvar_float("mp_timelimit") - (float(get_timeleft()) / 60.0);
}
As effor mentioned earlier, infinite time on a map could be a problem. I don't know what that would return if the map time is infinite.
I feel as though there should be some static time in minutes set by a config file. Three minutes is pretty good.