View Single Post
RoundMid and RoundEnd calculated wrong?
Old
  (#1)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default RoundMid and RoundEnd calculated wrong? - 12-05-2004

In util.cpp around line 520 in UTIL_RoundStart()
Code:
  g_fTimeRoundMid = g_fTimeRoundStart + CVAR_GET_FLOAT ("mp_roundtime") * 60 / 2;
   g_fTimeRoundEnd = g_fTimeRoundStart + CVAR_GET_FLOAT ("mp_roundtime") * 60;
This would probably be right if mp_roundtime was in seconds, but it's in minutes so this would be calculating the time in hours...

so the bots will think that rounds will end in quite a long time from the real time it will end.

[edit]
okay...
I'm stupid...
they multiply it by 60 to make the minutes into seconds....
so there's nothing wrong...
[/edit]

Last edited by sPlOrYgOn; 12-05-2004 at 04:36..
  
Reply With Quote