mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Opps
git-svn-id: https://svn.eduke32.com/eduke32@899 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
553e547c04
commit
fe97d1abb1
1 changed files with 5 additions and 5 deletions
|
@ -3896,7 +3896,7 @@ static void DoProjectile(int iSet, int lVar1, int lLabelID, int lVar2)
|
|||
|
||||
void OnEvent(int iEventID, int iActor, int iPlayer, int lDist)
|
||||
{
|
||||
if (iEvent<0 || iEventID >= MAXGAMEEVENTS)
|
||||
if (iEventID<0 || iEventID >= MAXGAMEEVENTS)
|
||||
{
|
||||
OSD_Printf(CON_ERROR "OnEvent(): invalid event ID",line_num);
|
||||
return;
|
||||
|
@ -5730,21 +5730,21 @@ static int parse(void)
|
|||
switch (tw)
|
||||
{
|
||||
case CON_SOUNDONCEVAR:
|
||||
if (j<0 || j*>=MAXSOUNDS) {OSD_Printf(CON_ERROR "CON_SOUNDONCEVAR: Invalid sound %d\n",line_num,j);break;}
|
||||
if (j<0 || j>=MAXSOUNDS) {OSD_Printf(CON_ERROR "CON_SOUNDONCEVAR: Invalid sound %d\n",line_num,j);break;}
|
||||
if (!isspritemakingsound(g_i,j))
|
||||
spritesound((short)j,g_i);
|
||||
break;
|
||||
case CON_GLOBALSOUNDVAR:
|
||||
if (j*<0 || j*>=MAXSOUNDS) {OSD_Printf(CON_ERROR "CON_GLOBALSOUNDVAR: Invalid sound %d\n",line_num,j);break;}
|
||||
if (j<0 || j>=MAXSOUNDS) {OSD_Printf(CON_ERROR "CON_GLOBALSOUNDVAR: Invalid sound %d\n",line_num,j);break;}
|
||||
spritesound((short)j,g_player[screenpeek].ps->i);
|
||||
break;
|
||||
case CON_STOPSOUNDVAR:
|
||||
if (j*<0 || j*>=MAXSOUNDS) {OSD_Printf(CON_ERROR "CON_STOPSOUNDVAR: Invalid sound %d\n",line_num,j);break;}
|
||||
if (j<0 || j>=MAXSOUNDS) {OSD_Printf(CON_ERROR "CON_STOPSOUNDVAR: Invalid sound %d\n",line_num,j);break;}
|
||||
if (isspritemakingsound(g_i,j))
|
||||
stopspritesound((short)j,g_i);
|
||||
break;
|
||||
case CON_SOUNDVAR:
|
||||
if (j*<0 || j*>=MAXSOUNDS) {OSD_Printf(CON_ERROR "CON_SOUNDVAR: Invalid sound %d\n",line_num,j);break;}
|
||||
if (j<0 || j>=MAXSOUNDS) {OSD_Printf(CON_ERROR "CON_SOUNDVAR: Invalid sound %d\n",line_num,j);break;}
|
||||
spritesound((short)j,g_i);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue