- fixed regression from b9eef9c6a3 where the angle wouldn't apply if horizon was specified.

This commit is contained in:
Mitchell Richters 2020-08-04 23:13:22 +10:00
parent b9eef9c6a3
commit 157933e902
4 changed files with 4 additions and 4 deletions

View file

@ -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]));
}

View file

@ -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]));
}

View file

@ -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]));
}

View file

@ -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]));
}