mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- fix issues with Exhumed and SW warptocoords
CCMDs when cherry-picking from public branch.
This commit is contained in:
parent
24d847f4ec
commit
3e44d850b3
2 changed files with 4 additions and 4 deletions
|
@ -126,7 +126,7 @@ static int osdcmd_changelevel(CCmdFuncPtr parm)
|
|||
static int osdcmd_warptocoords(CCmdFuncPtr parm)
|
||||
{
|
||||
if (parm->numparms != 5)
|
||||
return OSDCMD_SHOWHELP;
|
||||
return CCMD_SHOWHELP;
|
||||
|
||||
Player *nPlayer = &PlayerList[nLocalPlayer];
|
||||
spritetype *pSprite = &sprite[nPlayer->nSprite];
|
||||
|
@ -138,7 +138,7 @@ static int osdcmd_warptocoords(CCmdFuncPtr parm)
|
|||
nPlayer->q16angle = fix16_from_int(atoi(parm->parms[3]));
|
||||
nPlayer->q16horiz = fix16_from_int(atoi(parm->parms[4]));
|
||||
|
||||
return OSDCMD_OK;
|
||||
return CCMD_OK;
|
||||
}
|
||||
|
||||
int32_t registerosdcommands(void)
|
||||
|
|
|
@ -279,7 +279,7 @@ static int osdcmd_give(CCmdFuncPtr parm)
|
|||
static int osdcmd_warptocoords(CCmdFuncPtr parm)
|
||||
{
|
||||
if (parm->numparms != 5)
|
||||
return OSDCMD_SHOWHELP;
|
||||
return CCMD_SHOWHELP;
|
||||
|
||||
Player->oposx = Player->posx = atoi(parm->parms[0]);
|
||||
Player->oposy = Player->posy = atoi(parm->parms[1]);
|
||||
|
@ -288,7 +288,7 @@ static int osdcmd_warptocoords(CCmdFuncPtr parm)
|
|||
Player->oq16ang = Player->q16ang = Player->camq16ang = fix16_from_int(atoi(parm->parms[3]));
|
||||
Player->oq16horiz = Player->q16horiz = Player->camq16horiz = fix16_from_int(atoi(parm->parms[4]));
|
||||
|
||||
return OSDCMD_OK;
|
||||
return CCMD_OK;
|
||||
}
|
||||
|
||||
int32_t registerosdcommands(void)
|
||||
|
|
Loading…
Reference in a new issue