The code works as expected, and makes use of (EDIT) variable C4 (year built, counted since 1920) in a variational action 2.
However, because OpenTTD can start games before 1920, I thought it might be better to use (EDIT) variable 49 (year built, counted since 0). However nfo-renum (v3.4.6) reports the following error:
Code: Select all
//!!Warning (86): Offset 4: Testing nonexistant variable 49.
Variable 49 listed here: http://wiki.ttdpatch.net/tiki-index.php ... n2Vehicles
cheers,
Andy