summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_controller.hpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-02-03 18:08:07 +0000
committersmatz <smatz@openttd.org>2009-02-03 18:08:07 +0000
commit16d1904e709c97039a6ed1779a6c9956ba57792c (patch)
tree92c36bf040777addb4a1d7b1f21a0042daf33e26 /src/ai/api/ai_controller.hpp
parent00222c6881be06ce493ebf400dde35707210b9ae (diff)
downloadopenttd-16d1904e709c97039a6ed1779a6c9956ba57792c.tar.xz
(svn r15324) -Codechange: unify the class used for comparing of strings for std::map
Diffstat (limited to 'src/ai/api/ai_controller.hpp')
-rw-r--r--src/ai/api/ai_controller.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ai/api/ai_controller.hpp b/src/ai/api/ai_controller.hpp
index 1f1df743e..d4e2bd6dc 100644
--- a/src/ai/api/ai_controller.hpp
+++ b/src/ai/api/ai_controller.hpp
@@ -5,10 +5,8 @@
#ifndef AI_CONTROLLER_HPP
#define AI_CONTROLLER_HPP
+#include "../../core/string_compare_type.hpp"
#include <map>
-#ifndef AI_HPP
-struct ltstr { bool operator()(const char *s1, const char *s2) const { return strcmp(s1, s2) < 0; } };
-#endif /* AI_HPP */
/**
* The Controller, the class each AI should extend. It creates the AI, makes
@@ -85,7 +83,7 @@ public:
static void Print(bool error_msg, const char *message);
private:
- typedef std::map<const char *, const char *, ltstr> LoadedLibraryList;
+ typedef std::map<const char *, const char *, StringCompare> LoadedLibraryList;
uint ticks;
LoadedLibraryList loaded_library;