diff --git a/source/games/sw/src/game.h b/source/games/sw/src/game.h index 17e9ace5d..baa519b64 100644 --- a/source/games/sw/src/game.h +++ b/source/games/sw/src/game.h @@ -606,7 +606,7 @@ struct PLAYER TObjPtr last_camera_act; // holds last valid move position - vec3_t lv; + DVector3 lv; REMOTE_CONTROL remote; SECTOR_OBJECT* sop_remote; diff --git a/source/games/sw/src/player.cpp b/source/games/sw/src/player.cpp index 090696af8..a9ba501a7 100644 --- a/source/games/sw/src/player.cpp +++ b/source/games/sw/src/player.cpp @@ -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(); } }