Rework range checks for custom strings provided by NewGRFs
commit19fbef243dc93c88ef13bc60547f2c9417d7e1fa
authorfrosch <frosch@openttd.org>
Sun, 5 Mar 2017 14:44:15 +0000 (5 14:44 +0000)
committercirdan <cirdansw@gmail.com>
Tue, 4 Apr 2017 16:52:13 +0000 (4 18:52 +0200)
tree5f2afe946a489f4a8dcf69a577c60afb7f0a34a8
parentf347ee67cb1c589d75503507864026a2d1ab9d86
Rework range checks for custom strings provided by NewGRFs

(openttd r27768) -Codechange: Use if and IsInsideMM instead of
switch-case sequences to test for consecutive values.
src/newgrf.cpp