I found the following in the documentation:
INVALID_EXPENSES
Why this name?
Why do not more: EXPENSES_INVALID, like others INVALID type?
And in GSCompany:
static uint32 GetAutoRenewMoney (CompanyID company)
Why static uint32? Why do not more: static Money, like others Money methodes?
GS Documentation
Moderator: OpenTTD Developers
GS Documentation
Sorry my bad english, I don't speak english!
Re: GS Documentation
Because the internal Enum uses the name EXPENSES_INVALID and among all things to think about, I didn't remember to take a look at the other API methods for the possibility that the INVALID constant use a different naming pattern than the internal constants. Sorry about that.idioty wrote:I found the following in the documentation:
INVALID_EXPENSES
Why this name?
Why do not more: EXPENSES_INVALID, like others INVALID type?
I can 'fix' this and render the few scripts that rely on EXPENSES_INVALID broken for a short while before they get fixed.
I don't know the reason behind this. It may be historic or the same as above that the internal data type is uint32.idioty wrote:And in GSCompany:
static uint32 GetAutoRenewMoney (CompanyID company)
Why static uint32? Why do not more: static Money, like others Money methodes?
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
Re: GS Documentation
For "static int32 GSTown::GetGrowthRate"
Doesn't this function actually return the days between growth?
Code: Select all
Returns:
True if the action succeeded.
Re: GS Documentation
Fixed in r25788 (changed to EXPENSES_INVALID)idioty wrote:I found the following in the documentation:
INVALID_EXPENSES
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
Re: GS Documentation
Thx!Zuu wrote:Fixed in r25788 (changed to EXPENSES_INVALID)idioty wrote:I found the following in the documentation:
INVALID_EXPENSES
Sorry my bad english, I don't speak english!
Who is online
Users browsing this forum: No registered users and 18 guests