Skip to content

Commit

Permalink
Add: varact2 vehicle variable 64 to count badge use in consist.
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterN committed Jan 22, 2025
1 parent cfb3f52 commit 40aab42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nml/actions/action2var_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ def badge_parameter(name, args, pos, info):
'other_veh_x_offset' : {'var': 0x62, 'start': 8, 'size': 8, 'param_function':signed_byte_parameter, 'value_function':value_sign_extend},
'other_veh_y_offset' : {'var': 0x62, 'start': 16, 'size': 8, 'param_function':signed_byte_parameter, 'value_function':value_sign_extend},
'other_veh_z_offset' : {'var': 0x62, 'start': 24, 'size': 8, 'param_function':signed_byte_parameter, 'value_function':value_sign_extend},
'count_has_badge' : {'var': 0x64, 'start': 0, 'size': 8, 'param_function':badge_parameter},
'has_badge' : {'var': 0x7A, 'start': 0, 'size': 1, 'param_function':badge_parameter},
}

Expand Down

0 comments on commit 40aab42

Please sign in to comment.