src/ai/api/ai_error.hpp
branchnoai
changeset 9861 53fc03195e31
parent 9844 738b8f69675f
child 9863 73647fe2e301
--- a/src/ai/api/ai_error.hpp	Wed Apr 02 11:14:29 2008 +0000
+++ b/src/ai/api/ai_error.hpp	Thu Apr 03 13:28:46 2008 +0000
@@ -34,8 +34,10 @@
 	 * General error messages (0x0100 - 0x0200).
 	 */
 	enum ErrorMessages {
-		ERR_NONE = ERR_CAT_NONE << ERR_CAT_BIT_SIZE,  //!< Initial error value
-		ERR_UNKNOWN,                                  //!< If an error occured and the error wasn't mapped
+		/** Initial error value */
+		ERR_NONE = ERR_CAT_NONE << ERR_CAT_BIT_SIZE,  // []
+		/** If an error occured and the error wasn't mapped */
+		ERR_UNKNOWN,                                  // []
 
 		/** Base for general errors */
 		ERR_GENERAL_BASE = ERR_CAT_GENERAL << ERR_CAT_BIT_SIZE,
@@ -86,10 +88,10 @@
 	/**
 	 * Map an internal OpenTTD error message to it's NoAI equivalent.
 	 * @note DO NOT INVOKE THIS METHOD YOURSELF! The calls are autogenerated.
-	 * @param internal_string_id The OpenTTD StringID used for an error.
+	 * @param ai_error_msg The NoAI error message representation.
 	 * @param message The string representation of this error message, used for debug purposes.
 	 */
-	static void RegisterErrorMapString(uint internal_string_id, const char *message);
+	static void RegisterErrorMapString(uint ai_error_msg, const char *message);
 
 private:
 	typedef std::map<uint, uint> AIErrorMap;