Skip to content

Commit

Permalink
Fix: motion_counter is 24 bits, not 4.
Browse files Browse the repository at this point in the history
  • Loading branch information
frosch123 committed Dec 12, 2015
1 parent 82f9044 commit 52d27cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nml/actions/action2var_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def unsigned_tile_offset(name, args, pos, info):
'curv_info_prev_next' : {'var': 0x45, 'start': 16, 'size': 4, 'value_function': value_sign_extend},
'curv_info' : {'var': 0x45, 'start': 0, 'size': 12,
'value_function': lambda var, info: expression.BinOp(nmlop.AND, var, expression.ConstantNumeric(0x0F0F, var.pos), var.pos).reduce()},
'motion_counter' : {'var': 0x46, 'start': 8, 'size': 4},
'motion_counter' : {'var': 0x46, 'start': 8, 'size': 24},
'cargo_type_in_veh' : {'var': 0x47, 'start': 0, 'size': 8},
'cargo_unit_weight' : {'var': 0x47, 'start': 8, 'size': 8},
'cargo_classes' : {'var': 0x47, 'start': 16, 'size': 16},
Expand Down

0 comments on commit 52d27cf

Please sign in to comment.