You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create new game with xussr.grf, buy align car s8, s6, s6, s8 and 3 s6 (see screen 1).
Move mouse on train 3, hold Ctrl and Click, train 3 is flipped. Attention - flipped train is shift right on right side align car s8.
Start train 5 (contains 3 align car s6). For speed up use Tab key.
When train leave depot (see screen 2), press Reverse button on right toolbar of train 5.
See screen 3 - train 5 on tracks reverse without any shift.
With Sprite aligner tool change x offset from "-8" to "-16".
In depot flipped train 3 coincided with train 2 (see screen 4).
But on tracks if we press Reverse button again train 3 shifted left by 8 px.
But expected behavior as on screen 2.
Align car 8 is reversed correctly.
Used openttd trunk 23655, grf made with nmlc 1769.
Flipping the train simply changes the graphics that need to be taken, not the 'anchor' point of the graphics. For non-shortened vehicles the anchor point is the same for either direction, but for shortened vehicles there are two distinct anchor points for the vehicles.
This means that if you want to support the ctrl-click flipping in the depot you need to provide two distinct sets of graphics. One for the non-flipped and one for the flipped vehicle, otherwise they do not align right.
What you have done with the sprite aligner is changing the alignment so the flipped graphics look right, but you inadvertently broken the graphics for the non-flipped vehicle going in the opposite direction. As there are two distinct anchor points (for backward compatability reasons) you need to provide two sets of graphics if you want to support ctrl-click flipping of vehicles. This is the major reason why flipping has been disabled by default.
akasoft opened the ticket and wrote:
Attachments
Reported version: trunk
Operating system: Windows
This issue was imported from FlySpray: https://bugs.openttd.org/task/4910
The text was updated successfully, but these errors were encountered: