GEAR cargo - how to use it??

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

Moderator: Graphics Moderators

TadeuszD
Transport Coordinator
Transport Coordinator
Posts: 329
Joined: 07 Nov 2011 19:32
Location: PL

Re: GEAR cargo - how to use it??

Post by TadeuszD »

FooBar wrote:But it's not a bug, as nowhere a range is defined, so you can never go out of range...
Continuing this casual discussion, I would like to note that the range of cargo_subtype values is clearly defined in cargo_subtype_text CB by the number of returned strings. :wink:
Of course, if this callback is not defined, then this range is not specified. However, this is not a problem, because in this case vehicles typically do not use cargo_subtypes...

I don't know, how it works in NFO. I'm only NML programmer... :oops:
Image
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 16 guests