ai/ai.c
changeset 2702 e4663e88c530
parent 2701 a2b9a934044e
child 2706 d31bd0aa0096
equal deleted inserted replaced
2701:a2b9a934044e 2702:e4663e88c530
   248 /**
   248 /**
   249  * A new AI sees the day of light. You can do here what ever you think is needed.
   249  * A new AI sees the day of light. You can do here what ever you think is needed.
   250  */
   250  */
   251 void AI_StartNewAI(PlayerID player)
   251 void AI_StartNewAI(PlayerID player)
   252 {
   252 {
       
   253 	assert(player < MAX_PLAYERS);
       
   254 
   253 #ifdef GPMI
   255 #ifdef GPMI
   254 	/* Keep this in a different IF, because the function can turn _ai.gpmi off!! */
   256 	/* Keep this in a different IF, because the function can turn _ai.gpmi off!! */
   255 	if (_ai.gpmi && _ai.gpmi_mod == NULL)
   257 	if (_ai.gpmi && _ai.gpmi_mod == NULL)
   256 		AI_LoadAIControl();
   258 		AI_LoadAIControl();
   257 
   259