Callback: Station availability: Difference between revisions

From GRFSpecs
Jump to navigation Jump to search
Content deleted Content added
Pm-bot (talk | contribs)
m Create a separate page for each callback *** existing text overwritten ***
grf version 8
Line 1: Line 1:
== Station availability (13) ==
== Station availability (13) ==


This sets whether a station can be constructed or not, i.e. whether it can be selected in the station construction window.  A non-zero callback return indicates the station can be built, and a return code of zero removes the station from the selection.
This sets whether a station can be constructed or not, i.e. whether it can be selected in the station construction window.  Returning 1 as callback return indicates the station can be built, and a return code of 0 removes the station from the selection.

{{grf|8}} Note that GRF versions 7 and lower only distinguished zero and non-zero return values.
[[Category:Callbacks]]
[[Category:Callbacks]]

Revision as of 00:29, 9 November 2011

Station availability (13)

This sets whether a station can be constructed or not, i.e. whether it can be selected in the station construction window.  Returning 1 as callback return indicates the station can be built, and a return code of 0 removes the station from the selection.

GRFv8 Note that GRF versions 7 and lower only distinguished zero and non-zero return values.