.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Bug Reports (http://forums.bots-united.com/forumdisplay.php?f=49)
-   -   RoundMid and RoundEnd calculated wrong? (http://forums.bots-united.com/showthread.php?t=1647)

sPlOrYgOn 12-05-2004 03:45

RoundMid and RoundEnd calculated wrong?
 
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]


All times are GMT +2. The time now is 06:47.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.