From 93b201d60f5b504491d46e09399668eb992f288a Mon Sep 17 00:00:00 2001 From: glx22 Date: Wed, 14 Aug 2024 23:10:29 +0200 Subject: [PATCH] Fix 749aa73: station property 0A should be an extended byte --- nml/actions/action0.py | 2 +- regression/expected/040_station.grf | Bin 1265 -> 1267 bytes regression/expected/040_station.nfo | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nml/actions/action0.py b/nml/actions/action0.py index 8e84a8ac..63e981c6 100644 --- a/nml/actions/action0.py +++ b/nml/actions/action0.py @@ -1214,5 +1214,5 @@ def get_layout_action0(feature, id, layouts): def get_copy_layout_action0(feature, id, source_id): act0, offset = create_action0(feature, id, None, None) act0.num_ids = 1 - act0.prop_list.append(Action0Property(0x0A, source_id, 1)) + act0.prop_list.append(Action0Property(0x0A, source_id, 1 if source_id.value < 0xFF else 3)) return [act0] diff --git a/regression/expected/040_station.grf b/regression/expected/040_station.grf index 5d21c8a2c6a23d97bdbffcb44f2094dae6f48f4d..90a4682792b71d951a055bac46086e048582d9fc 100644 GIT binary patch delta 41 wcmey!`I(cOfx$hv1{Oxf{|t;=|Nk>g7H7Ey0Oni^egFUf delta 39 vcmey&`H_>Gfx$h