diff options
author | frosch <frosch@openttd.org> | 2011-07-03 13:49:29 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-07-03 13:49:29 +0000 |
commit | f93c8ce5aaf8e02bd7e3325f3b84530e9bcda7f4 (patch) | |
tree | ff6d3110876298d3d5ba201c299066dfc847939a /src/build_vehicle_gui.cpp | |
parent | d29def43b072864fd80495b1ff786476e094c771 (diff) | |
download | openttd-f93c8ce5aaf8e02bd7e3325f3b84530e9bcda7f4.tar.xz |
(svn r22627) -Codechange: Rename PrepareTextRefStackUsage() to StartTextRefStackUsage() to make it more obvious that you must call StopTextRefStackUsage() at some point. Also extent the documentation.
Diffstat (limited to 'src/build_vehicle_gui.cpp')
-rw-r--r-- | src/build_vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp index 605c71ebb..29486744d 100644 --- a/src/build_vehicle_gui.cpp +++ b/src/build_vehicle_gui.cpp @@ -740,7 +740,7 @@ static uint ShowAdditionalText(int left, int right, int y, EngineID engine) /* STR_BLACK_STRING is used to start the string with {BLACK} */ SetDParam(0, GetGRFStringID(GetEngineGRFID(engine), 0xD000 + callback)); - PrepareTextRefStackUsage(0); + StartTextRefStackUsage(0); uint result = DrawStringMultiLine(left, right, y, INT32_MAX, STR_BLACK_STRING); StopTextRefStackUsage(); return result; |