.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Releases, Installers, Docs & Coding (http://forums.bots-united.com/forumdisplay.php?f=48)
-   -   FIX: same named bots when no detailnames (http://forums.bots-united.com/showthread.php?t=1561)

sPlOrYgOn 01-05-2004 04:33

FIX: same named bots when no detailnames
 
Well I just found out that if there are no detailnames the bots still end up getting the same names.
in bot.cpp in function BotCreate
Code:

if (strstr (szUsedBotNames[index], szBotNames[name_index]) != NULL)
should be
Code:

if ((strstr (szUsedBotNames[index], szBotNames[name_index]) != NULL) || (strcmp (szUsedBotNames[index], szBotNames[name_index]) == 0))
[edit]
damn after the tests I thought it worked..
Appearently I got lucky and none of the names repeated but they still repeat...
time to try to fix this again..
[/edit]
[edit2]
strange no wonder I thought what i thought in the first edit..
only my linux DS repeats names...
so so strange...
[/edit2]
[edit3]
this seems to be a linux only error that I cannot fix...
if anyone knows whats wrong please help :(
[/edit3]


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

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