diff options
author | rubidium <rubidium@openttd.org> | 2010-12-05 22:24:04 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-05 22:24:04 +0000 |
commit | 091263317e7eb8a882813a11f6da53058c266df5 (patch) | |
tree | 1d04254627126917ad0b56c2c296335dca137506 /src/depot_gui.cpp | |
parent | 9a1805064654d5f0e348f8a7b990532bfb66921a (diff) | |
download | openttd-091263317e7eb8a882813a11f6da53058c266df5.tar.xz |
(svn r21409) -Codechange: limit depot name by amount of characters, not bytes
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r-- | src/depot_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index b94452ea4..54ebecdbe 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -738,7 +738,7 @@ struct DepotWindow : Window { case DEPOT_WIDGET_RENAME: // Rename button SetDParam(0, this->type); SetDParam(1, Depot::GetByTile((TileIndex)this->window_number)->index); - ShowQueryString(STR_DEPOT_NAME, STR_DEPOT_RENAME_DEPOT_CAPTION, MAX_LENGTH_DEPOT_NAME_BYTES, MAX_LENGTH_DEPOT_NAME_PIXELS, this, CS_ALPHANUMERAL, QSF_ENABLE_DEFAULT); + ShowQueryString(STR_DEPOT_NAME, STR_DEPOT_RENAME_DEPOT_CAPTION, MAX_LENGTH_DEPOT_NAME_CHARS, MAX_LENGTH_DEPOT_NAME_PIXELS, this, CS_ALPHANUMERAL, QSF_ENABLE_DEFAULT | QSF_LEN_IN_CHARS); break; case DEPOT_WIDGET_STOP_ALL: |