View Single Post
Re: Hi I'm new and have some question !
Old
  (#9)
Terran
Member
 
Terran's Avatar
 
Status: Offline
Posts: 431
Join Date: Jan 2004
Default Re: Hi I'm new and have some question ! - 10-03-2004

I did nothing special just added the lines you mentioned above...

bot.cpp:
Code:
 				if (IS_DEDICATED_SERVER())
 					    printf("JoeBOT : Creating bot...\n");
 				else if (pPlayer)
 					    ClientPrint( VARS(pPlayer), HUD_PRINTNOTIFY, "JoeBOT : Creating bot...\n");
 
 				//FREE_PRIVATE(BotEnt);
 				//BotEnt->pvPrivateData = 0;
 
 +			   if (BotEnt->pvPrivateData != NULL)
 +					   FREE_PRIVATE (BotEnt);
 +			   BotEnt->pvPrivateData = NULL;
 
 			    // create the player entity by calling MOD's player function
 			    // (from LINK_ENTITY_TO_CLASS for player object)
 
 			    // CALL_GAME_ENTITY (PLID, "player", VARS(BotEnt));
 				player( VARS(BotEnt) );
 
 			    infobuffer = GET_INFOBUFFER( BotEnt );
 				clientIndex = ENTINDEX( BotEnt );
  
Reply With Quote