mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- Blood: Fix warptocoords
CCMD.
This commit is contained in:
parent
c6e3b4df11
commit
79cd5e4731
1 changed files with 6 additions and 7 deletions
|
@ -44,23 +44,22 @@ static int osdcmd_warptocoords(CCmdFuncPtr parm)
|
|||
return CCMD_SHOWHELP;
|
||||
|
||||
PLAYER *pPlayer = &gPlayer[myconnectindex];
|
||||
VIEW* pView = &gPrevView[myconnectindex];
|
||||
|
||||
pPlayer->pSprite->x = gView->pSprite->x = atoi(parm->parms[0]);
|
||||
pPlayer->pSprite->y = gView->pSprite->y = atoi(parm->parms[1]);
|
||||
pPlayer->zView = gView->zView = atoi(parm->parms[2]);
|
||||
pPlayer->pSprite->x = pView->at50 = gView->pSprite->x = atoi(parm->parms[0]);
|
||||
pPlayer->pSprite->y = pView->at54 = gView->pSprite->y = atoi(parm->parms[1]);
|
||||
pPlayer->zView = pView->at38 = gView->zView = atoi(parm->parms[2]);
|
||||
|
||||
if (parm->numparms >= 4)
|
||||
{
|
||||
pPlayer->angle.oang = gView->angle.ang = buildang(atoi(parm->parms[3]));
|
||||
pPlayer->angle.oang = pPlayer->angle.ang = pView->at30 = gView->angle.ang = buildang(atoi(parm->parms[3]));
|
||||
}
|
||||
|
||||
if (parm->numparms == 5)
|
||||
{
|
||||
pPlayer->horizon.horiz = gView->horizon.horiz = buildhoriz(atoi(parm->parms[4]));
|
||||
pPlayer->horizon.ohoriz = pPlayer->horizon.horiz = pView->at24 = gView->horizon.horiz = buildhoriz(atoi(parm->parms[4]));
|
||||
}
|
||||
|
||||
viewBackupView(pPlayer->nPlayer);
|
||||
|
||||
return CCMD_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue