Skip to content

Commit

Permalink
Fix 749aa73: station property 0A should be an extended byte (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
glx22 authored Aug 14, 2024
1 parent d1b5e9b commit a139540
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nml/actions/action0.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Binary file modified regression/expected/040_station.grf
Binary file not shown.
4 changes: 2 additions & 2 deletions regression/expected/040_station.nfo
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ FF \wx00F9 // @action3_3;
1D \wxDC00
1C \wxDC01

31 * 9 00 04 \b1 01 FF \wx0100
0A FF
31 * 11 00 04 \b1 01 FF \wx0100
0A FF \wx00FF

// Name: @CB_FAILED_REAL04
32 * 7 02 04 F8 \b0 \b1
Expand Down

0 comments on commit a139540

Please sign in to comment.