From c3562e68edcdaaddbc892636b581403d8362fd2b Mon Sep 17 00:00:00 2001 From: planetmaker Date: Wed, 15 Feb 2012 22:51:26 +0100 Subject: [PATCH] Add: Action5 for tunnel portals (michi_cc) --- nml/actions/action3_callbacks.py | 1 + nml/actions/action5.py | 1 + 2 files changed, 2 insertions(+) diff --git a/nml/actions/action3_callbacks.py b/nml/actions/action3_callbacks.py index eed22326..a7c710bc 100644 --- a/nml/actions/action3_callbacks.py +++ b/nml/actions/action3_callbacks.py @@ -238,6 +238,7 @@ def cargo_profit_value(value): 'level_crossings' : {'type': 'cargo', 'num': 0x07}, 'depots' : {'type': 'cargo', 'num': 0x08}, 'fences' : {'type': 'cargo', 'num': 0x09}, + 'tunnel_overlay' : {'type': 'cargo', 'num': 0x0A}, } # Airport tiles diff --git a/nml/actions/action5.py b/nml/actions/action5.py index 4b623b12..d716a200 100644 --- a/nml/actions/action5.py +++ b/nml/actions/action5.py @@ -77,6 +77,7 @@ class Action5BlockType(object): 'FLAGS' : (0x14, 36, Action5BlockType.OFFSET), 'OTTD_GUI' : (0x15, 162, Action5BlockType.OFFSET), 'AIRPORT_PREVIEW' : (0x16, 9, Action5BlockType.OFFSET), + 'RAILTYPE_TUNNELS': (0x17, 16, Action5BlockType.OFFSET), } def parse_action5(replaces):