Thread: Please help
View Single Post
Re: Please help
Old
  (#7)
Terran
Member
 
Terran's Avatar
 
Status: Offline
Posts: 431
Join Date: Jan 2004
Default Re: Please help - 18-03-2004

@cruft:
please add this fix to bot.cpp:

Code:
 diff -Naur joebot-1.6.5.1/dlls/bot.cpp joebot-1.6.5.1-terran/dlls/bot.cpp
 --- joebot-1.6.5.1/dlls/bot.cpp 2004-03-09 00:25:48.000000000 +0100
 +++ joebot-1.6.5.1-terran/dlls/bot.cpp  2004-03-18 17:13:12.000000000 +0100
 @@ -324,6 +324,12 @@
 
 			    // create the player entity by calling MOD's player function
 			    // (from LINK_ENTITY_TO_CLASS for player object)
 +
 +			   if (BotEnt->pvPrivateData != NULL)
 +					   FREE_PRIVATE (BotEnt);
 +			   BotEnt->pvPrivateData = NULL;
 +			   BotEnt->v.frags = 0;
 +
 
 			    CALL_GAME_ENTITY(PLID, "player", VARS(BotEnt));
Without this change a new bot inherits the frags/death of a previously kicked bot...
  
Reply With Quote