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
The number of calls already done is provided to the newgrf using 16 bit. So 65536 would be a sane limit to abort calling the callback and trigger an newgrf error message instead.
This patch does pretty much what's proposed in the details of this ticket. It halts the loop at 65536, displays an error message and breaks the loop.
A new string was added to english.txt stating the file it occurred in and the local_id to help the user report the bug to the grf creator.
Although small, this is the very first patch I've made for OpenTTD. Big thanks to frosch123 on irc for lending a hand. :)
frosch opened the ticket and wrote:
Reported version: trunk
Operating system: All
This issue was imported from FlySpray: https://bugs.openttd.org/task/2787
The text was updated successfully, but these errors were encountered: