TBTR: Fix palette recolouring of templates

Fix group overrides affecting template image when cloning vehicle
Update template when changing company colours

Update template images on demand instead of at load
This commit is contained in:
Jonathan G Rennison
2020-12-26 09:37:26 +00:00
parent 369c98e3e0
commit 78b06ddc40
13 changed files with 98 additions and 44 deletions

View File

@@ -642,6 +642,8 @@ public:
void DrawTemplateList(const Rect &r) const
{
if (!_template_vehicle_images_valid) UpdateAllTemplateVehicleImages();
const_cast<TemplateReplaceWindow *>(this)->BuildTemplateGuiList();
int left = r.left;