NML cargo_profit callback

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

Post Reply
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1728
Joined: 30 Mar 2005 09:43

NML cargo_profit callback

Post by peter1138 »

Hi,

Does anyone use the cargo_profit callback within NML? There is a calculation bug that prevents negative values from working correctly, however the additional adjustment that NML does seems nonsensical.

https://github.com/OpenTTD/nml/pull/212

Thanks!
He's like, some kind of OpenTTD developer.
User avatar
2TallTyler
Route Supervisor
Route Supervisor
Posts: 490
Joined: 11 Aug 2019 18:15
Contact:

Re: NML cargo_profit callback

Post by 2TallTyler »

For anybody finding this later, this bug has been fixed: https://github.com/OpenTTD/nml/pull/220

I plan to use the cargo_profit callback in Industries of the Caribbean to make payment static no matter the distance traveled.
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 7 guests