(svn r12527) [NoAI] -Fix: only the first failing WrightAI could change its name to show it failed noai
authorglx
Tue, 01 Apr 2008 01:55:23 +0000
branchnoai
changeset 9855 cbbeaace78b5
parent 9854 209d3423ef16
child 9856 6a0dcee9f8e4
(svn r12527) [NoAI] -Fix: only the first failing WrightAI could change its name to show it failed
bin/ai/wrightai/main.nut
--- a/bin/ai/wrightai/main.nut	Mon Mar 31 18:45:18 2008 +0000
+++ b/bin/ai/wrightai/main.nut	Tue Apr 01 01:55:23 2008 +0000
@@ -349,7 +349,7 @@
 			}
 			else if (ret < 0 && ticker == 0) {
 				/* The AI failed to build a first airport and is deemed */
-				AICompany.SetCompanyName("FailedWrightAI");
+				AICompany.SetCompanyName("Failed " + this.name);
 				AILog.Error("Failed to build first airport route, now giving up building. Repaying loan. Have a nice day!");
 				AICompany.SetLoanAmount(0);
 				return;