Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 749aa73: station property 0A should be an extended byte #334

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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