(svn r13423) [NoAI] -Remove: old code telling we no longer support AIs without 'info.nut'. We hope everyone did that by now :) noai
authortruebrain
Sun, 08 Jun 2008 21:36:03 +0000
branchnoai
changeset 10872 b0495ab6c5cd
parent 10871 326ee226e9d7
child 10873 89076fb5bd06
(svn r13423) [NoAI] -Remove: old code telling we no longer support AIs without 'info.nut'. We hope everyone did that by now :)
src/ai/ai_squirrel.cpp
--- a/src/ai/ai_squirrel.cpp	Sun Jun 08 21:20:48 2008 +0000
+++ b/src/ai/ai_squirrel.cpp	Sun Jun 08 21:36:03 2008 +0000
@@ -78,15 +78,6 @@
 			this->current_script = script_name;
 			this->current_dir = d_name;
 			this->engine->LoadScript(load_script);
-		} else {
-			/* Check if this person does have main.nut, but not yet info.nut, and assume it is an old AI */
-			script_name[strlen(script_name) - 8] = '\0';
-			ttd_strlcat(script_name, "main.nut", sizeof(script_name));
-			if (FioCheckFileExists(script_name, AI_DIR)) {
-				DEBUG(ai, 0, "You are using a deprecated way of registering your AI.");
-				DEBUG(ai, 0, "Please read http://wiki.openttd.org/index.php/AI:AIInfo for more info");
-				DEBUG(ai, 0, "'%s' will _not_ be loaded.", script_name);
-			}
 		}
 	}
 	closedir(dir);