ai/default/default.c
changeset 2684 8aba54c245cc
parent 2648 72973ab76048
child 2737 f16e0a808897
equal deleted inserted replaced
2683:6f67fcf73873 2684:8aba54c245cc
  3936 		return;
  3936 		return;
  3937 
  3937 
  3938 	AiAdjustLoan(p);
  3938 	AiAdjustLoan(p);
  3939 	AiBuildCompanyHQ(p);
  3939 	AiBuildCompanyHQ(p);
  3940 
  3940 
  3941 	if (_opt.diff.competitor_speed == 4) {
       
  3942 		/* ultraspeed */
       
  3943 		_ai_actions[p->ai.state](p);
       
  3944 		if (p->bankrupt_asked != 0)
       
  3945 			return;
       
  3946 	} else if (_opt.diff.competitor_speed != 3) {
       
  3947 		p->ai.tick++;
       
  3948 		if (!(p->ai.tick&1))
       
  3949 			return;
       
  3950 		if (_opt.diff.competitor_speed != 2) {
       
  3951 			if (!(p->ai.tick&2))
       
  3952 				return;
       
  3953 			if (_opt.diff.competitor_speed == 0) {
       
  3954 				if (!(p->ai.tick&4))
       
  3955 					return;
       
  3956 			}
       
  3957 		}
       
  3958 	}
       
  3959 #if 0
  3941 #if 0
  3960 	{
  3942 	{
  3961 		static byte old_state = 99;
  3943 		static byte old_state = 99;
  3962 		static bool hasdots = false;
  3944 		static bool hasdots = false;
  3963 		char *_ai_state_names[]={
  3945 		char *_ai_state_names[]={