Skip to content

Commit

Permalink
Fix: incorrect start values for roadstop var 43/44 (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
WenSimEHRP authored Jan 6, 2025
1 parent 028cef0 commit a31f715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nml/actions/action2var_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,8 +793,8 @@ def industry_cargotype(name, args, pos, info):

'has_road' : {'var': 0x43, 'start': 0, 'size': 32, 'value_function': lambda var, info: nmlop.CMP_NEQ(var, 0xFFFFFFFF)},
'has_tram' : {'var': 0x44, 'start': 0, 'size': 32, 'value_function': lambda var, info: nmlop.CMP_NEQ(var, 0xFFFFFFFF)},
'road_type' : {'var': 0x43, 'start': 8, 'size': 8}, # The roadtype of this tile
'tram_type' : {'var': 0x44, 'start': 8, 'size': 8}, # The tramtype of this tile
'road_type' : {'var': 0x43, 'start': 0, 'size': 8}, # The roadtype of this tile
'tram_type' : {'var': 0x44, 'start': 0, 'size': 8}, # The tramtype of this tile

'town_manhattan_dist' : {'var': 0x45, 'start': 0, 'size': 16},
'town_zone' : {'var': 0x45, 'start': 16, 'size': 8},
Expand Down

0 comments on commit a31f715

Please sign in to comment.