[Rseding91] [1.1.6] Crash connecting custom rail signal via circuit wire (DrawQueue::draw)
Posted: Mon Dec 28, 2020 7:03 pm
I get a crash when connecting 2 custom rail signals with a circuit wire. I believe it is due to the rail signal only having 1 animation direction and 1 circuit_wire_connection_points and circuit_connector_sprites entry.
It only seems to happen on East/West rail signals and not North South rail signals.
When I change it to have 4 of each directions the custom rail signal can be connected correctly. The custom rail signal doesn't have the 8 direction entity flag.
Attached simple test mod to create the issue in 1.1.6: Save game with track and signals placed, circuit wire in hand. Just connect the 2 signals and it crashes. They are both attached to the rail, just look odd as only single graphics direction in example: Log file: Dump file:
It only seems to happen on East/West rail signals and not North South rail signals.
When I change it to have 4 of each directions the custom rail signal can be connected correctly. The custom rail signal doesn't have the 8 direction entity flag.
Attached simple test mod to create the issue in 1.1.6: Save game with track and signals placed, circuit wire in hand. Just connect the 2 signals and it crashes. They are both attached to the rail, just look odd as only single graphics direction in example: Log file: Dump file: