mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- Exhumed: Fix noclipping so the player can clip through anything.
* The `inside()` test is now only performed when noclipping is off.
This commit is contained in:
parent
7410c78ce4
commit
8f748fdb2a
1 changed files with 5 additions and 5 deletions
|
@ -1343,12 +1343,12 @@ static bool doPlayerMovement(Player* const pPlayer)
|
||||||
|
|
||||||
if (pPlayerSect != pPlayerActor->sector())
|
if (pPlayerSect != pPlayerActor->sector())
|
||||||
ChangeActorSect(pPlayerActor, pPlayerSect);
|
ChangeActorSect(pPlayerActor, pPlayerSect);
|
||||||
}
|
|
||||||
|
|
||||||
if (inside(pPlayerActor->spr.pos.X, pPlayerActor->spr.pos.Y, pPlayerActor->sector()) != 1)
|
if (inside(pPlayerActor->spr.pos.X, pPlayerActor->spr.pos.Y, pPlayerActor->sector()) != 1)
|
||||||
{
|
{
|
||||||
ChangeActorSect(pPlayerActor, spr_sect);
|
ChangeActorSect(pPlayerActor, spr_sect);
|
||||||
pPlayerActor->spr.pos.XY() = spr_pos.XY();
|
pPlayerActor->spr.pos.XY() = spr_pos.XY();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool bUnderwater = pPlayerActor->sector()->Flag & kSectUnderwater;
|
const bool bUnderwater = pPlayerActor->sector()->Flag & kSectUnderwater;
|
||||||
|
|
Loading…
Reference in a new issue