mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-24 04:34:16 +01:00
Codechange: Use EncodedString for Query window. (#13528)
This removes the need to separately capture and store global parameters.
This commit is contained in:
@@ -822,11 +822,9 @@ struct DepotWindow : Window {
|
||||
case WID_D_SELL_ALL:
|
||||
/* Only open the confirmation window if there are anything to sell */
|
||||
if (!this->vehicle_list.empty() || !this->wagon_list.empty()) {
|
||||
SetDParam(0, this->type);
|
||||
SetDParam(1, this->GetDestinationIndex());
|
||||
ShowQuery(
|
||||
STR_DEPOT_CAPTION,
|
||||
STR_DEPOT_SELL_CONFIRMATION_TEXT,
|
||||
GetEncodedString(STR_DEPOT_CAPTION, this->type, this->GetDestinationIndex()),
|
||||
GetEncodedString(STR_DEPOT_SELL_CONFIRMATION_TEXT),
|
||||
this,
|
||||
DepotSellAllConfirmationCallback
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user