Skip to content

Commit

Permalink
Fix: By default there is no ELRL railtype. (#277)
Browse files Browse the repository at this point in the history
To define ELRL trains, you can either
* define a railtype table containing ELRL, or
* use track_type=RAIL with engine_class=ENGINE_CLASS_ELECTRIC.
This was already reflected in the documentation.
  • Loading branch information
frosch123 committed Feb 17, 2023
1 parent e0be209 commit 5f5dbaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nml/global_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -1354,8 +1354,8 @@ def create_spritegroup_ref(name, info, pos):
cargo_numbers = {}

is_default_railtype_table = True
# if no railtype_table is provided, OpenTTD assumes these 4 railtypes
railtype_table = {"RAIL": 0, "ELRL": 1, "MONO": 1, "MGLV": 2}
# if no railtype_table is provided, OpenTTD assumes these 3 railtypes
railtype_table = {"RAIL": 0, "MONO": 1, "MGLV": 2}

is_default_roadtype_table = True
# if no roadtype_table is provided, OpenTTD sets all vehicles to ROAD
Expand Down

0 comments on commit 5f5dbaa

Please sign in to comment.