summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-25 01:10:24 +0000
committerrubidium <rubidium@openttd.org>2009-03-25 01:10:24 +0000
commit3e93f8adda5f23808e66a973b1dce8d7e7c24d0f (patch)
tree6a8fb50166f8edf977cbf51774333b5004a3a679 /src/ai
parent4a500bbcdb5c1f3b8bfe8dcc454c2d07b210bf88 (diff)
downloadopenttd-3e93f8adda5f23808e66a973b1dce8d7e7c24d0f.tar.xz
(svn r15844) -Codechange: allow text alignment to be forced so the console and ai debug output don't get swapped (those are untranslateable anyways)
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index c8f88eaa8..6a93c6eaa 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -655,7 +655,7 @@ struct AIDebugWindow : public Window {
assert(info != NULL);
char name[1024];
snprintf(name, sizeof(name), "%s (v%d)", info->GetName(), info->GetVersion());
- DrawString(7, this->widget[AID_WIDGET_VIEW].right, 47, name, TC_BLACK);
+ DrawString(this->widget[AID_WIDGET_NAME_TEXT].left + 7, this->widget[AID_WIDGET_NAME_TEXT].right - 7, 47, name, TC_BLACK, SA_CENTER);
CompanyID old_company = _current_company;
_current_company = ai_debug_company;
@@ -681,7 +681,7 @@ struct AIDebugWindow : public Window {
default: colour = TC_BLACK; break;
}
- DrawString(this->widget[AID_WIDGET_LOG_PANEL].left + 7, this->widget[AID_WIDGET_LOG_PANEL].right - 7, this->widget[AID_WIDGET_LOG_PANEL].top + y, log->lines[pos], colour);
+ DrawString(this->widget[AID_WIDGET_LOG_PANEL].left + 7, this->widget[AID_WIDGET_LOG_PANEL].right - 7, this->widget[AID_WIDGET_LOG_PANEL].top + y, log->lines[pos], colour, SA_LEFT | SA_FORCE);
y += 12;
}
}