Open ahyangyi opened 4 hours ago
I also looked at the source code, and noticed that the if-condition below seems to be slightly outdated (i.e. before the addition of 0xFF classes)
The equivalent vanilla OpenTTD code doesn't seem to contain the same behavior, so I believe this is a JGRPP bug.
Here is the corresponding vanilla OpenTTD code, IsWaypointClass
allows those 0xFF
station classes.
https://github.com/OpenTTD/OpenTTD/blob/master/src/waypoint_cmd.cpp#L341
Thanks, this should be fixed in the next release
Version of OpenTTD
jgrpp-0.63.1-16 (jgrpp branch head)
Expected result
A road stop that uses a station class that starts with 0xFF is recognized as a waypoint, and can be built normally.
Actual result
A road stop that uses a station class that starts with 0xFF is indeed recognized as a waypoint, but raises an error when one tries to build it.
Steps to reproduce
Use the in-game download service to get
China Set: Stations - Wuhu
version 0.3.1 (the latest one), and attempt to build a road waypoint.