Add a helper FindGRFStringEntry to find a string map
commitf552b90378524011c6e3b8232c56ccb24fae13e9
authorcirdan <cirdansw@gmail.com>
Thu, 16 Nov 2017 20:11:01 +0000 (16 21:11 +0100)
committercirdan <cirdansw@gmail.com>
Thu, 16 Nov 2017 20:11:01 +0000 (16 21:11 +0100)
tree446263aa7639d3b13de34db16d453d9b9f5e9409
parent5be57bfe14343db8186ad711be7180d99c05acc3
Add a helper FindGRFStringEntry to find a string map

Add a helper function FindGRFStringEntry to find the string map
for given GRF and string identifiers and use it in AddGRFString
and GetGRFStringID.
src/newgrf_text.cpp