mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r14058) -Fix [FS#2224]: NewGRF callback 23 didn't use the NewGRF compatible text stack (minime)
This commit is contained in:
parent
142ea9a0aa
commit
7f5ef3da45
@ -443,7 +443,10 @@ uint ShowAdditionalText(int x, int y, uint w, EngineID engine)
|
|||||||
|
|
||||||
/* STR_02BD is used to start the string with {BLACK} */
|
/* STR_02BD is used to start the string with {BLACK} */
|
||||||
SetDParam(0, GetGRFStringID(GetEngineGRFID(engine), 0xD000 + callback));
|
SetDParam(0, GetGRFStringID(GetEngineGRFID(engine), 0xD000 + callback));
|
||||||
return DrawStringMultiLine(x, y, STR_02BD, w);
|
PrepareTextRefStackUsage(0);
|
||||||
|
uint result = DrawStringMultiLine(x, y, STR_02BD, w);
|
||||||
|
StopTextRefStackUsage();
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Display list of cargo types of the engine, for the purchase information window */
|
/** Display list of cargo types of the engine, for the purchase information window */
|
||||||
|
Loading…
Reference in New Issue
Block a user