mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 19:20:38 +00:00
"Oops" round two.
git-svn-id: https://svn.eduke32.com/eduke32@31 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
6a83968dd7
commit
0bcc066c63
1 changed files with 13 additions and 21 deletions
|
@ -3588,7 +3588,8 @@ char parse(void)
|
||||||
case CON_SOUNDONCE:
|
case CON_SOUNDONCE:
|
||||||
insptr++;
|
insptr++;
|
||||||
if(!isspritemakingsound(g_i,*insptr))
|
if(!isspritemakingsound(g_i,*insptr))
|
||||||
spritesound((short) *insptr++,g_i);
|
spritesound((short) *insptr,g_i);
|
||||||
|
insptr++;
|
||||||
break;
|
break;
|
||||||
case CON_IFSOUND:
|
case CON_IFSOUND:
|
||||||
insptr++;
|
insptr++;
|
||||||
|
@ -3598,12 +3599,14 @@ char parse(void)
|
||||||
case CON_STOPSOUND:
|
case CON_STOPSOUND:
|
||||||
insptr++;
|
insptr++;
|
||||||
if(isspritemakingsound(g_i,*insptr))
|
if(isspritemakingsound(g_i,*insptr))
|
||||||
stopspritesound((short)*insptr++,g_i);
|
stopspritesound((short)*insptr,g_i);
|
||||||
|
insptr++;
|
||||||
break;
|
break;
|
||||||
case CON_GLOBALSOUND:
|
case CON_GLOBALSOUND:
|
||||||
insptr++;
|
insptr++;
|
||||||
if(g_p == screenpeek || (gametype_flags[ud.coop]&GAMETYPE_FLAG_COOPSOUND))
|
if(g_p == screenpeek || (gametype_flags[ud.coop]&GAMETYPE_FLAG_COOPSOUND))
|
||||||
spritesound((short) *insptr++,ps[screenpeek].i);
|
spritesound((short) *insptr,ps[screenpeek].i);
|
||||||
|
insptr++;
|
||||||
break;
|
break;
|
||||||
case CON_SOUND:
|
case CON_SOUND:
|
||||||
insptr++;
|
insptr++;
|
||||||
|
@ -5769,7 +5772,6 @@ good:
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
long l;
|
long l;
|
||||||
long lResult;
|
|
||||||
insptr++;
|
insptr++;
|
||||||
i=*insptr++; // ID of def
|
i=*insptr++; // ID of def
|
||||||
l=*insptr++;
|
l=*insptr++;
|
||||||
|
@ -5777,44 +5779,37 @@ good:
|
||||||
{
|
{
|
||||||
gameexit("CON_MODVAR: Mod by zero.");
|
gameexit("CON_MODVAR: Mod by zero.");
|
||||||
}
|
}
|
||||||
lResult=GetGameVarID(i, g_i, g_p) % l;
|
SetGameVarID(i,GetGameVarID(i, g_i, g_p)%l, g_i, g_p );
|
||||||
SetGameVarID(i, lResult, g_i, g_p );
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CON_ANDVAR:
|
case CON_ANDVAR:
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
long l;
|
long l;
|
||||||
long lResult;
|
|
||||||
insptr++;
|
insptr++;
|
||||||
i=*insptr++; // ID of def
|
i=*insptr++; // ID of def
|
||||||
l=*insptr++;
|
l=*insptr++;
|
||||||
lResult=GetGameVarID(i, g_i, g_p) & l;
|
SetGameVarID(i,GetGameVarID(i, g_i, g_p) & l, g_i, g_p );
|
||||||
SetGameVarID(i, lResult, g_i, g_p );
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CON_ORVAR:
|
case CON_ORVAR:
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
long l;
|
long l;
|
||||||
long lResult;
|
|
||||||
insptr++;
|
insptr++;
|
||||||
i=*insptr++; // ID of def
|
i=*insptr++; // ID of def
|
||||||
l=*insptr++;
|
l=*insptr++;
|
||||||
lResult=GetGameVarID(i, g_i, g_p) | l;
|
SetGameVarID(i,GetGameVarID(i, g_i, g_p) | l, g_i, g_p );
|
||||||
SetGameVarID(i, lResult, g_i, g_p );
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CON_XORVAR:
|
case CON_XORVAR:
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
long l;
|
long l;
|
||||||
long lResult;
|
|
||||||
insptr++;
|
insptr++;
|
||||||
i=*insptr++; // ID of def
|
i=*insptr++; // ID of def
|
||||||
l=*insptr++;
|
l=*insptr++;
|
||||||
lResult=GetGameVarID(i, g_i, g_p) ^ l;
|
SetGameVarID(i,GetGameVarID(i, g_i, g_p) ^ l, g_i, g_p );
|
||||||
SetGameVarID(i, lResult, g_i, g_p );
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5822,12 +5817,10 @@ good:
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
long l1;
|
long l1;
|
||||||
long lResult;
|
|
||||||
insptr++;
|
insptr++;
|
||||||
i=*insptr++; // ID of def
|
i=*insptr++; // ID of def
|
||||||
l1=GetGameVarID(*insptr++, g_i, g_p);
|
l1=GetGameVarID(*insptr++, g_i, g_p);
|
||||||
lResult=mulscale(krand(), l1+1, 16);
|
SetGameVarID(i,mulscale(krand(), l1+1, 16), g_i, g_p );
|
||||||
SetGameVarID(i, lResult , g_i, g_p );
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5835,12 +5828,11 @@ good:
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
long l1;
|
long l1;
|
||||||
long lResult;
|
|
||||||
insptr++;
|
insptr++;
|
||||||
i=*insptr++; // ID of def
|
i=*insptr++; // ID of def
|
||||||
l1=GetGameVarID(*insptr++, g_i, g_p);
|
l1=GetGameVarID(*insptr++, g_i, g_p);
|
||||||
lResult=mulscale(rand(), l1+1, 15);
|
|
||||||
SetGameVarID(i, lResult , g_i, g_p );
|
SetGameVarID(i,mulscale(rand(), l1+1, 15), g_i, g_p );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue