.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   The RealBot 'Source' (http://forums.bots-united.com/forumdisplay.php?f=52)
-   -   crashes in 3050 (http://forums.bots-united.com/showthread.php?t=2085)

Josh_Borke 02-07-2004 01:05

Re: crashes in 3050
 
following the procedure in post #16 I have gotten this error quite quickly on my dedicated server:
./hlds_run: line 423: 31520 Floating point exception$HL_CMD
./hlds_run: line 423: 31548 Floating point exception$HL_CMD

HTH

--edit--
ipReplyToRadio is not being checked anywhere.

util.cpp:880: int iExtra = (100/pBot->ipCreateRadio);

could be

Code:

int iExtra = 30;
 if (pBot->ipCreateRadio > 0)
  iExtra = 100/(pBot->ipCreateRadio)

ipCreateRadio could be zero, divide by zero...

so far no crashes, only played a couple rounds

also

Code:

bot_client.cpp:1014:          if (iDevide < 1)
should be
Code:

bot_client.cpp:1014:          if (iDevide < 1 || iDevide == 0)
just in case :)

stefanhendriks 02-07-2004 08:44

Re: crashes in 3050
 
very nicely found, any possible devide by 0 should be removed!

the second suggestion, erm when < 1 means == 0, or even lower? i dont get that.

Josh_Borke 02-07-2004 15:22

Re: crashes in 3050
 
er, yea, it was late...


All times are GMT +2. The time now is 03:31.

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