summaryrefslogtreecommitdiff
path: root/src/ai/ai.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
commit5ad1cd32b2f630f413646131fbdfbae85b3c72f8 (patch)
tree92c36bf040777addb4a1d7b1f21a0042daf33e26 /src/ai/ai.hpp
parentd23db8306e55b6cd471d848c6825c78c5269f5f9 (diff)
downloadopenttd-5ad1cd32b2f630f413646131fbdfbae85b3c72f8.tar.xz
(svn r15324) -Codechange: unify the class used for comparing of strings for std::map
Diffstat (limited to 'src/ai/ai.hpp')
-rw-r--r--src/ai/ai.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ai/ai.hpp b/src/ai/ai.hpp
index 0485cabae..2653e66ae 100644
--- a/src/ai/ai.hpp
+++ b/src/ai/ai.hpp
@@ -7,11 +7,9 @@
#include "api/ai_event_types.hpp"
#include "../date_type.h"
+#include "../core/string_compare_type.hpp"
-#ifndef AI_CONFIG_HPP
-struct ltstr { bool operator()(const char *s1, const char *s2) const { return strcmp(s1, s2) < 0; } };
-#endif /* AI_CONFIG_HPP */
-typedef std::map<const char *, class AIInfo *, ltstr> AIInfoList;
+typedef std::map<const char *, class AIInfo *, StringCompare> AIInfoList;
void CcAI(bool success, TileIndex tile, uint32 p1, uint32 p2);