FS#6477 - Stations: store sprite layout entry in station var68

Attached to Project: OpenTTD
Opened by Michael Blunck (mb) - Monday, 13 June 2016, 09:20 GMT
Last edited by andythenorth (andythenorth) - Friday, 01 September 2017, 10:08 GMT
Type Feature Request
Category NewGRF → NewStations
Status New
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Version?
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No



In "station info of nearby tiles (68)", bits 14 .. 31 are still "reserved for future use". It would be helpful to store the "entry from sprite layout" (prop09/1A) in this range, probably only using 8 bits 14 .. 21, so there´d be still 10 bits left for future use.
This task depends upon

Comment by frosch (frosch) - Monday, 13 June 2016, 16:55 GMT Comment by Michael Blunck (mb) - Monday, 13 June 2016, 19:01 GMT
> [...] when you use this variable in callback 0x14 and the other tile does the same and
> queries the layout of the first tile, you will end up with a nice recursion

Hm, yes. Didn´t recall my proposal from 2008. At least this shows that there´s ongoing demand for. :D

Well, obviously such circular references makes no sense whatsoever, and would be avoided.
I mean, there are already a lot of other bear traps in grf-coding which might result in "unwanted game behaviour". And at least, this can´t be achieved by an unprepared user, only by a buggy newgrf.