Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Electric rail type not being set correctly #237

Closed
DorpsGek opened this issue Jul 6, 2006 · 2 comments
Closed

Electric rail type not being set correctly #237

DorpsGek opened this issue Jul 6, 2006 · 2 comments
Labels
component: NewGRF This issue is related to NewGRFs flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Jul 6, 2006

mart3p opened the ticket and wrote:

In the new Tropic Refurbishment Set (http://www.tt-forums.net/viewtopic.php?t=19435) electric trains are behaving as non-electric.

In newgrf.c function RailVehicleChangeInfo, the GRF Action 0 property 0x19 (Engine traction type) correctly sets the railtype for electric engines to RAILTYPE_ELECTRIC. But this is then followed by an action 0 property 0x05 (Track type). This overwrites the railtype for the engine with RAILTYPE_RAIL.

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/237
@DorpsGek
Copy link
Member Author

ma5owat wrote:

I had a similar issue with the USset and have found a way to replicate the problem. In the topic "Problem with Elrails and Graphic files (USSETW)" (http://www.tt-forums.net/viewtopic.php?t=28159) I explain the problem I encountered with electric trains behaving as non-electric, then after resetengine, save and restart they behave as electric engines.


This comment was imported from FlySpray: https://bugs.openttd.org/task/237#comment545

@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Implemented

In r7194


This comment was imported from FlySpray: https://bugs.openttd.org/task/237

@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) component: NewGRF This issue is related to NewGRFs bug labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: NewGRF This issue is related to NewGRFs flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant