Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
openttd_version: OpenTTD var 21/1A result has changed since OpenTTD moved to git #80
When OpenTTD was versioned using SVN the lower bits of var 21/A1 contained the SVN revision. Since OpenTTD 1.9 these bits are unused.
nml has openttd_version var. It also has a built-in function version_openttd(MAJOR, MINOR, BUILD, REVISION) which can test for a specific svn version of OpenTTD. That won't return valid results with OpenTTD >= 1.9
The SVN revision bits are frozen to one past the last SVN revision number, they are not zero.