Skip to content

Commit 42cad75

Browse files
committed
(building/station) remove undefined default_code
1 parent a7267f2 commit 42cad75

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

agrf/lib/building/station.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import grf
22
from agrf.actions import FakeReferencingAction, FakeReferencedAction
3-
from agrf.lib.building.registers import code, default_code
3+
from agrf.lib.building.registers import code
44
from agrf.lib.building.station_tile_switch import StationTileSwitch
55
from agrf.strings import label_printable
66
from agrf.utils import unique
@@ -112,16 +112,14 @@ def get_sprites(self, g, sprites=None):
112112
self.callbacks.graphics = grf.GraphicsCallback(
113113
default=grf.Switch(
114114
ranges={2: foundations},
115-
code=code + self.extra_code + default_code + "\nextra_callback_info1_byte",
115+
code=code + self.extra_code + "\nextra_callback_info1_byte",
116116
default=graphics,
117117
),
118118
purchase=grf.Switch(ranges={0: graphics}, code=code + self.extra_code, default=graphics),
119119
)
120120
props["general_flags"] = props.get("general_flags", 0) | 0b1000
121121
else:
122-
self.callbacks.graphics = grf.Switch(
123-
ranges={0: graphics}, code=code + self.extra_code + default_code, default=graphics
124-
)
122+
self.callbacks.graphics = grf.Switch(ranges={0: graphics}, code=code + self.extra_code, default=graphics)
125123

126124
cb_props = {}
127125
self.callbacks.set_flag_props(cb_props)

0 commit comments

Comments
 (0)