mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
Fixed splitting of long lines in message box menu
https://mantis.zdoom.org/view.php?id=338
This commit is contained in:
parent
bfa7a2d737
commit
76a44ebf9c
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,8 @@ DMenu *CreateMessageBoxMenu(DMenu *parent, const char *message, int messagemode,
|
||||||
{
|
{
|
||||||
auto c = PClass::FindClass("MessageBoxMenu");
|
auto c = PClass::FindClass("MessageBoxMenu");
|
||||||
auto p = c->CreateNew();
|
auto p = c->CreateNew();
|
||||||
VMValue params[] = { p, parent, FString(message), messagemode, playsound, action.GetIndex(), reinterpret_cast<void*>(handler) };
|
const FString msg = '$' == message[0] ? GStrings(message + 1) : message;
|
||||||
|
VMValue params[] = { p, parent, msg, messagemode, playsound, action.GetIndex(), reinterpret_cast<void*>(handler) };
|
||||||
|
|
||||||
auto f = dyn_cast<PFunction>(c->Symbols.FindSymbol("Init", false));
|
auto f = dyn_cast<PFunction>(c->Symbols.FindSymbol("Init", false));
|
||||||
GlobalVMStack.Call(f->Variants[0].Implementation, params, countof(params), nullptr, 0);
|
GlobalVMStack.Call(f->Variants[0].Implementation, params, countof(params), nullptr, 0);
|
||||||
|
|
Loading…
Reference in a new issue