- floatified PLAYER::lv

This commit is contained in:
Christoph Oelckers 2022-09-01 18:23:17 +02:00
parent 6feb187a2a
commit 203e2c405f
2 changed files with 3 additions and 3 deletions

View file

@ -606,7 +606,7 @@ struct PLAYER
TObjPtr<DSWActor*> last_camera_act;
// holds last valid move position
vec3_t lv;
DVector3 lv;
REMOTE_CONTROL remote;
SECTOR_OBJECT* sop_remote;

View file

@ -5844,13 +5844,13 @@ void DoPlayerDeathMoveHead(PLAYER* pp)
{
pp->cursector = pp->lv_sector;
ChangeActorSect(pp->actor, pp->lv_sector);
pp->set_int_ppos_XY(pp->lv.XY());
pp->pos.XY() = pp->lv.XY();
plActor->spr.pos.XY() = pp->pos.XY();
}
else
{
pp->lv_sector = sect;
pp->lv.XY() = pp->int_ppos().XY();
pp->lv.XY() = pp->pos.XY();
}
}