src/ai/api/ai_error.hpp.sq
branchnoai
changeset 9861 53fc03195e31
parent 9844 738b8f69675f
child 9863 73647fe2e301
--- a/src/ai/api/ai_error.hpp.sq	Wed Apr 02 11:14:29 2008 +0000
+++ b/src/ai/api/ai_error.hpp.sq	Thu Apr 03 13:28:46 2008 +0000
@@ -33,16 +33,19 @@
 	SQAIError.DefSQConst(engine, AIError::ERR_AREA_NOT_CLEAR,                   "ERR_AREA_NOT_CLEAR");
 	SQAIError.DefSQConst(engine, AIError::ERR_AREA_IS_OWNED_BY_ANOTHER_COMPANY, "ERR_AREA_IS_OWNED_BY_ANOTHER_COMPANY");
 
-	AIError::RegisterErrorMap      (STR_0003_NOT_ENOUGH_CASH_REQUIRES,    AIError::ERR_NOT_ENOUGH_CASH);
-	AIError::RegisterErrorMapString(STR_0003_NOT_ENOUGH_CASH_REQUIRES,            "ERR_NOT_ENOUGH_CASH");
-	AIError::RegisterErrorMap      (STR_2009_LOCAL_AUTHORITY_REFUSES,     AIError::ERR_LOCAL_AUTHORITY_REFUSES);
-	AIError::RegisterErrorMapString(STR_2009_LOCAL_AUTHORITY_REFUSES,             "ERR_LOCAL_AUTHORITY_REFUSES");
-	AIError::RegisterErrorMap      (STR_1007_ALREADY_BUILT,               AIError::ERR_ALREADY_BUILT);
-	AIError::RegisterErrorMapString(STR_1007_ALREADY_BUILT,                       "ERR_ALREADY_BUILT");
-	AIError::RegisterErrorMap      (STR_2004_BUILDING_MUST_BE_DEMOLISHED, AIError::ERR_AREA_NOT_CLEAR);
-	AIError::RegisterErrorMapString(STR_2004_BUILDING_MUST_BE_DEMOLISHED,         "ERR_AREA_NOT_CLEAR");
-	AIError::RegisterErrorMap      (STR_1024_AREA_IS_OWNED_BY_ANOTHER,    AIError::ERR_AREA_IS_OWNED_BY_ANOTHER_COMPANY);
-	AIError::RegisterErrorMapString(STR_1024_AREA_IS_OWNED_BY_ANOTHER,            "ERR_AREA_IS_OWNED_BY_ANOTHER_COMPANY");
+	AIError::RegisterErrorMap(STR_0003_NOT_ENOUGH_CASH_REQUIRES,    AIError::ERR_NOT_ENOUGH_CASH);
+	AIError::RegisterErrorMap(STR_2009_LOCAL_AUTHORITY_REFUSES,     AIError::ERR_LOCAL_AUTHORITY_REFUSES);
+	AIError::RegisterErrorMap(STR_1007_ALREADY_BUILT,               AIError::ERR_ALREADY_BUILT);
+	AIError::RegisterErrorMap(STR_2004_BUILDING_MUST_BE_DEMOLISHED, AIError::ERR_AREA_NOT_CLEAR);
+	AIError::RegisterErrorMap(STR_1024_AREA_IS_OWNED_BY_ANOTHER,    AIError::ERR_AREA_IS_OWNED_BY_ANOTHER_COMPANY);
+
+	AIError::RegisterErrorMapString(AIError::ERR_NONE,                             "ERR_NONE");
+	AIError::RegisterErrorMapString(AIError::ERR_UNKNOWN,                          "ERR_UNKNOWN");
+	AIError::RegisterErrorMapString(AIError::ERR_NOT_ENOUGH_CASH,                  "ERR_NOT_ENOUGH_CASH");
+	AIError::RegisterErrorMapString(AIError::ERR_LOCAL_AUTHORITY_REFUSES,          "ERR_LOCAL_AUTHORITY_REFUSES");
+	AIError::RegisterErrorMapString(AIError::ERR_ALREADY_BUILT,                    "ERR_ALREADY_BUILT");
+	AIError::RegisterErrorMapString(AIError::ERR_AREA_NOT_CLEAR,                   "ERR_AREA_NOT_CLEAR");
+	AIError::RegisterErrorMapString(AIError::ERR_AREA_IS_OWNED_BY_ANOTHER_COMPANY, "ERR_AREA_IS_OWNED_BY_ANOTHER_COMPANY");
 
 	SQAIError.DefSQStaticMethod(engine, &AIError::GetClassName,           "GetClassName",           1, "x");
 	SQAIError.DefSQStaticMethod(engine, &AIError::GetErrorCategory,       "GetErrorCategory",       1, "x");