.:: Bots United ::.

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

evy 25-06-2004 11:30

Minor bug in
 
Stefan,

the reallog.txt contains garbage from times to times. Here is probably some wrong code in game.cpp:

Code:

void cGame::CreateSwatTeams()
{
                // loop through all bots, create teams with sizes 2 to 4 bots.
                int iSize=0, iBot=0, iLeaderTries=0;
                bool bRunLoop=true;
                char temp[128];
                log(temp);

It looks wrong to write temp which is not yet initialized ;)

-eric

stefanhendriks 25-06-2004 15:40

Re: Minor bug in
 
lol yeah, forgot to remove that. I had some debug messages goin on there in the past.

i removed it;

however, i still hear there are 'crashes' and i don't know why yet.

Josh_Borke 01-07-2004 05:19

Re: Minor bug in
 
dll.cpp - line 2164

Code:

if (FStrEq (arg1, "print"))
should be
Code:

else  if (FStrEq (arg1, "print"))
dontshoot won't say it's not a valid command anymore...

stefanhendriks 02-07-2004 18:51

Re: Minor bug in
 
Thx Josh! Got it fixed ;)


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

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