The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Yona-TYT on May 20, 2024, 04:50:17 AM

Title: [API Script] New method convoy.is_following()
Post by: Yona-TYT on May 20, 2024, 04:50:17 AM
Thinking about making a small modification to the tutorial.

https://github.com/simutrans/simutrans/pull/3
Title: Re: [API Script] New method convoy.is_following()
Post by: prissi on May 20, 2024, 06:42:57 AM
Github pulls will be ignored. Anyway, you implementation was awkward, calling a tool for such a simple, even local function. I have put this in the API, r11216
Title: Re: [API Script] New method convoy.is_following()
Post by: Yona-TYT on May 21, 2024, 10:58:43 AM
wow I didn't expect you to use "sint32", I guess it's a substitute for boolean variables.

Line 369:
* @returns true if convoy is currently waiting (for way clearance)
The description is wrong.
Title: Re: [API Script] New method convoy.is_following()
Post by: ceeac on May 22, 2024, 05:34:13 AM
Quote from: Yona-TYT on May 21, 2024, 10:58:43 AMLine 369:
Corrected in r11222.