mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- fixed regression from b9eef9c6a3
where the angle wouldn't apply if horizon was specified.
This commit is contained in:
parent
b9eef9c6a3
commit
157933e902
4 changed files with 4 additions and 4 deletions
|
@ -203,7 +203,7 @@ static int osdcmd_warptocoords(CCmdFuncPtr parm)
|
|||
pPlayer->pSprite->y = gView->pSprite->y = atoi(parm->parms[1]);
|
||||
pPlayer->zView = gView->zView = atoi(parm->parms[2]);
|
||||
|
||||
if (parm->numparms == 4)
|
||||
if (parm->numparms >= 4)
|
||||
{
|
||||
pPlayer->q16ang = gView->q16ang = fix16_from_int(atoi(parm->parms[3]));
|
||||
}
|
||||
|
|
|
@ -135,7 +135,7 @@ static int osdcmd_warptocoords(CCmdFuncPtr parm)
|
|||
nPlayer->opos.y = pSprite->y = atoi(parm->parms[1]);
|
||||
nPlayer->opos.z = pSprite->z = atoi(parm->parms[2]);
|
||||
|
||||
if (parm->numparms == 4)
|
||||
if (parm->numparms >= 4)
|
||||
{
|
||||
nPlayer->q16angle = fix16_from_int(atoi(parm->parms[3]));
|
||||
}
|
||||
|
|
|
@ -272,7 +272,7 @@ static int osdcmd_warptocoords(CCmdFuncPtr parm)
|
|||
p->oposy = p->posy = atoi(parm->parms[1]);
|
||||
p->oposz = p->posz = atoi(parm->parms[2]);
|
||||
|
||||
if (parm->numparms == 4)
|
||||
if (parm->numparms >= 4)
|
||||
{
|
||||
p->oq16ang = p->q16ang = fix16_from_int(atoi(parm->parms[3]));
|
||||
}
|
||||
|
|
|
@ -285,7 +285,7 @@ static int osdcmd_warptocoords(CCmdFuncPtr parm)
|
|||
Player->oposy = Player->posy = atoi(parm->parms[1]);
|
||||
Player->oposz = Player->posz = atoi(parm->parms[2]);
|
||||
|
||||
if (parm->numparms == 4)
|
||||
if (parm->numparms >= 4)
|
||||
{
|
||||
Player->oq16ang = Player->q16ang = Player->camq16ang = fix16_from_int(atoi(parm->parms[3]));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue