OpenTTD-JPplus / JPplusMU

JP+ Multiple Units is a NewGRF for OpenTTD, bringing new and refreshing JGR, JNR and JR multiple units to the game.
GNU General Public License v2.0
25 stars 9 forks source link

JpyNML2 #120

Open Tintinfan opened 2 years ago

Tintinfan commented 2 years ago

Main Code:

Todo:

Fix:

Tintinfan commented 2 years ago

KIHA Code

Problem: KiHa types, such as the KiHa 40, 48 and 58 can be coupled in random formations. They are all treated as single units.

Solution: Treat every KiHa as a single car unit regardless.

Allow them to be flipped in the depot. Check if the last vehicle is flipped or not and draw the sprite with the cab facing the back anyway. Check if there is something behind a 2-car unit such as the KiHa 48/58.

Other notes:

TRAIN_FLAG_FLIP is misc_flags to allow flipping in depot.