Merge branch 'master' into jgrpp

# Conflicts:
#	src/saveload/afterload.cpp
This commit is contained in:
Jonathan G Rennison
2022-12-08 22:06:46 +00:00
3 changed files with 5 additions and 4 deletions

View File

@@ -23,6 +23,7 @@
#include "roadveh.h"
#include "ship.h"
#include "aircraft.h"
#include "zoom_func.h"
#include "widgets/engine_widget.h"
@@ -93,7 +94,7 @@ struct EnginePreviewWindow : Window {
case VEH_SHIP: GetShipSpriteSize( engine, x, y, x_offs, y_offs, image_type); break;
case VEH_AIRCRAFT: GetAircraftSpriteSize(engine, x, y, x_offs, y_offs, image_type); break;
}
this->vehicle_space = std::max<int>(40, y - y_offs);
this->vehicle_space = std::max<int>(ScaleSpriteTrad(40), y - y_offs);
size->width = std::max(size->width, x - x_offs);
SetDParam(0, GetEngineCategoryName(engine));