- fix issues with Exhumed and SW warptocoords CCMDs when cherry-picking from public branch.

This commit is contained in:
Mitchell Richters 2020-08-04 18:04:44 +10:00
parent 24d847f4ec
commit 3e44d850b3
2 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -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)