OpenTTD

Tasklist

FS#495 - Allow GRF to activate itself using action E (in title screen)

Attached to Project: OpenTTD
Opened by Ondra Svoboda (Hadez) - Sunday, 31 December 2006, 15:49 GMT
Type Patch
Category NewGRF
Status Closed
Assigned To No-one
Operating System All
Severity Medium
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

This fixes for example a font GRF (defined as static), which uses action E to activate itself in the title screen (works in TTDPatch). It is done by checking the action type, number of GRFs to be (de)activated (only 1 is allowed) and a GRF ID, thus it fixes only the situation mentioned.
This task depends upon

Closed by  Darkvater (Darkvater)
Wednesday, 03 January 2007, 14:56 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in a recent commit.
Comment by Peter Nelson (peter1138) - Sunday, 31 December 2006, 20:18 GMT
Can you give the name and location of "a font GRF" that exhibits this?
Comment by Ondra Svoboda (Hadez) - Tuesday, 02 January 2007, 17:48 GMT
Unifont. Can be found at: http://ttd.tycoonez.com/?id=144&lang=en
I tried this patch with a modified version though. I needed a GRF ID which was unavailable in _cur_grfconfig->grfid (equal to 0) in GRFUnsafe, so I put action 8 before action E. But Unifont doesn't work in TTDPatch now.
Can you say how I get GRF ID of a currently processed file?

Loading...