Changeset - r15433:1ed8c7f8d7fa
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-07-07 20:00:04
frosch@openttd.org
(svn r20086) -Add: Textstack support for CB 38.
1 file changed with 5 insertions and 7 deletions:
0 comments (0 inline, 0 general)
src/industry_gui.cpp
Show inline comments
 
@@ -433,15 +433,13 @@ public:
 
					uint16 callback_res = GetIndustryCallback(CBID_INDUSTRY_FUND_MORE_TEXT, 0, 0, NULL, this->selected_type, INVALID_TILE);
 
					if (callback_res != CALLBACK_FAILED) {  // Did it fail?
 
						str = GetGRFStringID(indsp->grf_prop.grffile->grfid, 0xD000 + callback_res);  // No. here's the new string
 
						if (str != STR_UNDEFINED) {
 
							PrepareTextRefStackUsage(6);
 
							DrawStringMultiLine(left, right, y, bottom, str);
 
							StopTextRefStackUsage();
 
						}
 
					}
 
				}
 

	
 
				/* Draw the Additional purchase text, provided by newgrf callback, if any.
 
				 * Otherwhise, will print Nothing */
 
				if (str != STR_NULL && str != STR_UNDEFINED) {
 
					SetDParam(0, str);
 
					DrawStringMultiLine(left, right, y, bottom, STR_JUST_STRING);
 
				}
 
			} break;
 
		}
 
	}
0 comments (0 inline, 0 general)