I figured I should use it in my GRF to disable an error message (action B). This works as expected in builds which support version checking, but gives me troubles in builds without it (i.e. < r11330).Commit by rubidium :: r11330 /trunk/ (6 files in 4 dirs): wrote:-Add: OTTD version checking for NewGRFs. This allows NewGRFs to do something different for different versions of OpenTTD, like disabling it for too low versions or loading different graphics.
Seems Action 7 Variable A1 evaluates as 'true' in builds without Action 7 Var A1 support, rendering it useless (to me). Is this normal behaviour, or am I doing something wrong?
Little example:
Code: Select all
-1 * 0 07 A1 04 \7> 41 2C 00 06 01
-1 * 0 0B 00 7F FF "Notice: This set requires OpenTTD r10549 or higher." 00
Using r11339 it skips the error message as expected.
Using r11293 it _also_ skips the error message, and that's exactly what I don't want it to do.
If this normal behaviour, is there an other method to disable that error message in rxxxxx and up, and still having it displayed in versions < r10549?