summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-08-13 06:05:01 +0000
committerrubidium <rubidium@openttd.org>2008-08-13 06:05:01 +0000
commit97c184f8f8265cf59b24ab3081a032c7162afcb5 (patch)
treedd64aeafae6994a4ed4e2d23a71d62db7de1668f /src/vehicle_gui.cpp
parent08e7da71f520649359bbe40656a7c93e6ac2e1b0 (diff)
downloadopenttd-97c184f8f8265cf59b24ab3081a032c7162afcb5.tar.xz
(svn r14063) -Codechange: replace some "magic" constants with enumified constants.
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r--src/vehicle_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index cf2ea725b..24f0f5d1e 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -1475,7 +1475,7 @@ struct VehicleDetailsWindow : Window {
case VLD_WIDGET_RENAME_VEHICLE: {// rename
const Vehicle *v = GetVehicle(this->window_number);
SetDParam(0, v->index);
- ShowQueryString(STR_VEHICLE_NAME, _name_vehicle_title[v->type], 31, 150, this, CS_ALPHANUMERAL);
+ ShowQueryString(STR_VEHICLE_NAME, _name_vehicle_title[v->type], MAX_LENGTH_VEHICLE_NAME_BYTES, MAX_LENGTH_VEHICLE_NAME_PIXELS, this, CS_ALPHANUMERAL);
} break;
case VLD_WIDGET_INCREASE_SERVICING_INTERVAL: // increase int