mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
Revert "Fixed splitting of long lines in message box menu"
This reverts commit 76a44ebf9c
.
Fix was done in the wrong place, it should be inside the script so that script-side calls to open a confirmation screen also get proper treatment.
This commit is contained in:
parent
6210a67f85
commit
3412bdf5dc
1 changed files with 1 additions and 2 deletions
|
@ -67,8 +67,7 @@ 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();
|
||||||
const FString msg = '$' == message[0] ? GStrings(message + 1) : message;
|
VMValue params[] = { p, parent, FString(message), messagemode, playsound, action.GetIndex(), reinterpret_cast<void*>(handler) };
|
||||||
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