Use player angle for respawn
This commit is contained in:
parent
ee3e0ef1a3
commit
8a1fc406a3
1 changed files with 1 additions and 6 deletions
|
|
@ -7330,12 +7330,7 @@ waypoint_t *K_GetPlayerNextWaypoint(player_t *player)
|
|||
player->starposttime = player->realtime;
|
||||
player->starpostz = player->mo->z >> FRACBITS;
|
||||
player->starpostflip = (player->mo->eflags & MFE_VERTICALFLIP) ? true : false;
|
||||
player->starpostangle = R_PointToAngle2(
|
||||
player->mo->x,
|
||||
player->mo->y,
|
||||
bestwaypoint->nextwaypoints[nwp]->mobj->x,
|
||||
bestwaypoint->nextwaypoints[nwp]->mobj->y
|
||||
);
|
||||
player->starpostangle = player->mo->angle;
|
||||
|
||||
// Then do x and y
|
||||
player->starpostx = player->mo->x >> FRACBITS;
|
||||
|
|
|
|||
Loading…
Reference in a new issue