mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- SW: Don't use pp->setHeightAndZ()
when setting PLAYER_CRAWL_HEIGHTF
.
This commit is contained in:
parent
6e4e2b04eb
commit
b83d321c4b
2 changed files with 6 additions and 3 deletions
|
@ -3142,7 +3142,8 @@ void DoPlayerFall(PLAYER* pp)
|
|||
// i any kind of crawl key get rid of recoil
|
||||
if (DoPlayerTestCrawl(pp) || (pp->input.actions & SB_CROUCH))
|
||||
{
|
||||
pp->setHeightAndZ(pp->loz, PLAYER_CRAWL_HEIGHTF);
|
||||
pp->actor->spr.pos.Z = pp->loz - PLAYER_CRAWL_HEIGHTF - pp->actor->viewzoffset;
|
||||
pp->height = PLAYER_CRAWL_HEIGHTF;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -3605,7 +3606,8 @@ void DoPlayerCrawl(PLAYER* pp)
|
|||
|
||||
if (pp->insector() && (pp->cursector->extra & SECTFX_DYNAMIC_AREA))
|
||||
{
|
||||
pp->setHeightAndZ(pp->loz, PLAYER_CRAWL_HEIGHTF);
|
||||
pp->actor->spr.pos.Z = pp->loz - PLAYER_CRAWL_HEIGHTF - pp->actor->viewzoffset;
|
||||
pp->height = PLAYER_CRAWL_HEIGHTF;
|
||||
}
|
||||
|
||||
DoPlayerBob(pp);
|
||||
|
|
|
@ -1743,7 +1743,8 @@ PlayerPart:
|
|||
{
|
||||
// move up some for really fast moving plats
|
||||
DoPlayerZrange(pp);
|
||||
pp->setHeightAndZ(pp->loz, PLAYER_CRAWL_HEIGHTF);
|
||||
pp->actor->spr.pos.Z = pp->loz - PLAYER_CRAWL_HEIGHTF - pp->actor->viewzoffset;
|
||||
pp->height = PLAYER_CRAWL_HEIGHTF;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue