mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-13 07:57:58 +00:00
- fixed message output.
This commit is contained in:
parent
cce1bad042
commit
3ed7f4066d
2 changed files with 4 additions and 4 deletions
|
@ -563,7 +563,7 @@ FString cht_Morph(player_t *player, PClassActor *morphclass, bool quickundo)
|
||||||
FString message;
|
FString message;
|
||||||
VMReturn msgret(&message);
|
VMReturn msgret(&message);
|
||||||
VMValue params[3] = { player->mo, morphclass, quickundo };
|
VMValue params[3] = { player->mo, morphclass, quickundo };
|
||||||
VMCall(func, params, 3, nullptr, 0);
|
VMCall(func, params, 3, &msgret, 1);
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
|
|
|
@ -414,14 +414,14 @@ extend class PlayerPawn
|
||||||
{
|
{
|
||||||
if (!quickundo && oldclass != morphclass && MorphPlayer (player, morphclass, 0, style))
|
if (!quickundo && oldclass != morphclass && MorphPlayer (player, morphclass, 0, style))
|
||||||
{
|
{
|
||||||
return StringTable.Localize("TXT_STRANGER");
|
return StringTable.Localize("$TXT_STRANGER");
|
||||||
}
|
}
|
||||||
return StringTable.Localize("TXT_NOTSTRANGE");
|
return StringTable.Localize("$TXT_NOTSTRANGE");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (MorphPlayer (player, morphclass, 0, style))
|
else if (MorphPlayer (player, morphclass, 0, style))
|
||||||
{
|
{
|
||||||
return StringTable.Localize("TXT_STRANGE");
|
return StringTable.Localize("$TXT_STRANGE");
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue