Skip to content

Commit

Permalink
Fix #206: Apply correct mask to town_euclidean_dist variables (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
glx22 committed Apr 23, 2021
1 parent b75878b commit 77e76ab
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 @@ -605,7 +605,7 @@ def industry_cargotype(name, args, pos, info):
'nearby_tile_animation_frame' : {'var': 0x63, 'start': 0, 'size': 8, 'param_function': unsigned_tile_offset},
'town_manhattan_dist' : {'var': 0x65, 'start': 0, 'size': 16, 'param_function': signed_tile_offset},
'town_zone' : {'var': 0x65, 'start': 16, 'size': 8, 'param_function': signed_tile_offset},
'town_euclidean_dist' : {'var': 0x66, 'start': 0, 'size': 32, 'param_function': signed_tile_offset},
'town_euclidean_dist' : {'var': 0x66, 'start': 0, 'size': 16, 'param_function': signed_tile_offset},
'industry_count' : {'var': 0x67, 'start': 16, 'size': 8, 'param_function': industry_count},
'industry_distance' : {'var': 0x67, 'start': 0, 'size': 16, 'param_function': industry_count},
'industry_layout_count' : {'var': 0x68, 'start': 16, 'size': 8, 'param_function': industry_layout_count},
Expand Down Expand Up @@ -665,7 +665,7 @@ def industry_cargotype(name, args, pos, info):
'town_manhattan_dist' : {'var': 0x45, 'start': 0, 'size': 16},
'town_zone' : {'var': 0x45, 'start': 16, 'size': 8},

'town_euclidean_dist' : {'var': 0x46, 'start': 0, 'size': 32},
'town_euclidean_dist' : {'var': 0x46, 'start': 0, 'size': 16},
'view' : {'var': 0x48, 'start': 0, 'size': 8},
'random_bits' : {'var': 0x5F, 'start': 8, 'size': 8},
}
Expand Down

0 comments on commit 77e76ab

Please sign in to comment.