Use preview instead of purchase sprites for engine preview width calc.

This commit is contained in:
Jonathan G Rennison
2016-06-18 13:22:08 +01:00
parent afb5b625ef
commit 2cdc4c5fa0

View File

@@ -81,7 +81,7 @@ struct EnginePreviewWindow : Window {
/* Get size of engine sprite, on loan from depot_gui.cpp */
EngineID engine = this->window_number;
EngineImageType image_type = EIT_PURCHASE;
EngineImageType image_type = EIT_PREVIEW;
uint x, y;
int x_offs, y_offs;