Add a GRFText::create that calls TranslateTTDPatchCodes
commit51d5357825d127572d280dca986607221bdf62f2
authorcirdan <cirdansw@gmail.com>
Sun, 2 Apr 2017 06:53:11 +0000 (2 08:53 +0200)
committercirdan <cirdansw@gmail.com>
Sun, 2 Apr 2017 06:53:11 +0000 (2 08:53 +0200)
tree30191fa456c15a1f4dd64dffde62a8e8a3986ec8
parent969623865b8ed8df3de7c2abf30f05699164faf3
Add a GRFText::create that calls TranslateTTDPatchCodes

Add an alternate GRFText::create that calls TranslateTTDPatchCodes
on the string passed in to factor out code from GRFTextMap::add and
AddGRFString.
src/newgrf_text.cpp
src/newgrf_text.h