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

CloneVehicleName respect left-padding when incrementing custom number #3710

Closed
DorpsGek opened this issue Mar 19, 2010 · 1 comment
Closed
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay

Comments

@DorpsGek
Copy link
Member

sbr opened the ticket and wrote:

When CloneVehicleName find a number at the end of the vehicle custom name, it try to increment it to generate a new name. However when the number it found is left-padded, the incremented name isn't anymore.
For example CloneVehicleName("Veh # 0101") returns "Veh # 102".

This patch make CloneVehicleName respect the original number padding and thus obtaining "Veh # 0102" from "Veh # 0101".

Please find an attached patch against r19475.

Attachments

Reported version: trunk
Operating system: All


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

peter1138 closed the ticket.

Reason for closing: Implemented

In r19498.

Thanks.


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

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay
Projects
None yet
Development

No branches or pull requests

1 participant