mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-15 16:51:31 +00:00
- Fixed erroneous P_UndoPlayerMorph calls.
In some places, P_UndoPlayerMorph was called with the 'force' argument placed in the 'unmorphflag' parameter, so that 'forced' unmorphs would be not completely forceful. I hope no mod relied on this weirdness...
This commit is contained in:
parent
27cc3d6289
commit
ad9b9479ec
2 changed files with 3 additions and 3 deletions
|
@ -514,7 +514,7 @@ bool P_MorphedDeath(AActor *actor, AActor **morphed, int *morphedstyle, int *mor
|
|||
AActor *realme = actor->player->mo->tracer;
|
||||
int realstyle = actor->player->MorphStyle;
|
||||
int realhealth = actor->health;
|
||||
if (P_UndoPlayerMorph(actor->player, actor->player, !!(actor->player->MorphStyle & MORPH_UNDOBYDEATHFORCED)))
|
||||
if (P_UndoPlayerMorph(actor->player, actor->player, 0, !!(actor->player->MorphStyle & MORPH_UNDOBYDEATHFORCED)))
|
||||
{
|
||||
*morphed = realme;
|
||||
*morphedstyle = realstyle;
|
||||
|
|
|
@ -9455,7 +9455,7 @@ scriptwait:
|
|||
{
|
||||
if (activator->player)
|
||||
{
|
||||
if (P_UndoPlayerMorph(activator->player, activator->player, force))
|
||||
if (P_UndoPlayerMorph(activator->player, activator->player, 0, force))
|
||||
{
|
||||
changes++;
|
||||
}
|
||||
|
@ -9481,7 +9481,7 @@ scriptwait:
|
|||
{
|
||||
if (actor->player)
|
||||
{
|
||||
if (P_UndoPlayerMorph(activator->player, actor->player, force))
|
||||
if (P_UndoPlayerMorph(activator->player, actor->player, 0, force))
|
||||
{
|
||||
changes++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue