- fixed message output.

This commit is contained in:
Christoph Oelckers 2018-11-24 08:41:07 +01:00
parent cce1bad042
commit 3ed7f4066d
2 changed files with 4 additions and 4 deletions

View file

@ -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 "";

View file

@ -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 "";
} }