mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-04 18:28:03 +01:00
Fix: EngineImageType mismatch between sizing and drawing in preview window (#14455)
This commit is contained in:
parent
1b01a0636c
commit
03672ed8eb
@ -84,7 +84,7 @@ struct EnginePreviewWindow : Window {
|
|||||||
|
|
||||||
/* Get size of engine sprite, on loan from depot_gui.cpp */
|
/* Get size of engine sprite, on loan from depot_gui.cpp */
|
||||||
EngineID engine = static_cast<EngineID>(this->window_number);
|
EngineID engine = static_cast<EngineID>(this->window_number);
|
||||||
EngineImageType image_type = EIT_PURCHASE;
|
EngineImageType image_type = EIT_PREVIEW;
|
||||||
uint x, y;
|
uint x, y;
|
||||||
int x_offs, y_offs;
|
int x_offs, y_offs;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user