View Single Post
FIX: same named bots when no detailnames
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 FIX: same named bots when no detailnames - 01-05-2004

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]

Last edited by sPlOrYgOn; 01-05-2004 at 06:55..
  
Reply With Quote