(svn r21409) -Codechange: limit depot name by amount of characters, not bytes

This commit is contained in:
rubidium
2010-12-05 22:24:04 +00:00
parent 83535a52ea
commit 116a1201dd
3 changed files with 3 additions and 3 deletions

View File

@@ -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: