diff options
author | truebrain <truebrain@openttd.org> | 2009-01-15 18:15:12 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2009-01-15 18:15:12 +0000 |
commit | ef62688522218c50bed25bd8383e82365d91cdb0 (patch) | |
tree | fe14c05c0a3bd9c3c4546610ab53a830dc6bab9b /src/ai/ai_gui.cpp | |
parent | a039ec0d21008668b79509d097b9a6f59ea64977 (diff) | |
download | openttd-ef62688522218c50bed25bd8383e82365d91cdb0.tar.xz |
(svn r15095) -Add [NoAI]: allow AI Libraries to be in .tar files (subdir required, as with AIs
-Add [NoAI]: allow multiple versions of the same AI co-exist
-Change [NoAI]: updated the whole method of AI (Library) finding and loading; it is now much more clear and transparent
-Change [NoAI]: the name of the AI is now the name used by CreateInstance()
-Change [NoAI]: make the AI finder a bit more clever, mostly related to version finding
Diffstat (limited to 'src/ai/ai_gui.cpp')
-rw-r--r-- | src/ai/ai_gui.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp index 8272cc966..05c9e388e 100644 --- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -134,7 +134,9 @@ struct AIDebugWindow : public Window { /* Draw the AI name */ AIInfo *info = GetCompany(ai_debug_company)->ai_info; assert(info != NULL); - DoDrawString(info->GetName(), 7, 47, TC_BLACK); + char name[1024]; + snprintf(name, sizeof(name), "%s (v%d)", info->GetName(), info->GetVersion()); + DoDrawString(name, 7, 47, TC_BLACK); CompanyID old_company = _current_company; _current_company = ai_debug_company; |