mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-24 04:51:41 +00:00
- fixed: G_FinishTravel must synchronize the CF_FLY flag with MF2_FLY.
This commit is contained in:
parent
83be901ad6
commit
aa338a4dc6
2 changed files with 10 additions and 1 deletions
|
@ -1183,6 +1183,15 @@ void G_FinishTravel ()
|
||||||
pawn->AddToHash ();
|
pawn->AddToHash ();
|
||||||
pawn->SetState(pawn->SpawnState);
|
pawn->SetState(pawn->SpawnState);
|
||||||
pawn->player->SendPitchLimits();
|
pawn->player->SendPitchLimits();
|
||||||
|
// Sync the FLY flags.
|
||||||
|
if (pawn->flags2 & MF2_FLY)
|
||||||
|
{
|
||||||
|
pawn->player->cheats |= CF_FLY;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
pawn->player->cheats &= ~CF_FLY;
|
||||||
|
}
|
||||||
|
|
||||||
for (inv = pawn->Inventory; inv != NULL; inv = inv->Inventory)
|
for (inv = pawn->Inventory; inv != NULL; inv = inv->Inventory)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1237,7 +1237,7 @@ int P_DamageMobj (AActor *target, AActor *inflictor, AActor *source, int damage,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (damage >= player->health && damage < TELEFRAG_DAMAGE &&
|
if (damage >= player->health && damage < TELEFRAG_DAMAGE
|
||||||
&& (G_SkillProperty(SKILLP_AutoUseHealth) || deathmatch)
|
&& (G_SkillProperty(SKILLP_AutoUseHealth) || deathmatch)
|
||||||
&& !player->morphTics)
|
&& !player->morphTics)
|
||||||
{ // Try to use some inventory health
|
{ // Try to use some inventory health
|
||||||
|
|
Loading…
Reference in a new issue