- fixed some bugs.

This commit is contained in:
Christoph Oelckers 2020-05-15 00:32:11 +02:00
parent cba4f0616b
commit 1fd0c279d7
3 changed files with 7 additions and 13 deletions

View file

@ -287,10 +287,16 @@ SKIPWALLCHECK:
if (isWorldTour())
{
if (sprite[s->owner].picnum == APLAYER && sj->picnum == APLAYER && ud.coop != 0 && ud.ffire == 0 && s->owner != j)
{
j = nextj;
continue;
}
if (s->picnum == FLAMETHROWERFLAME && ((sprite[s->owner].picnum == FIREFLY && sj->picnum == FIREFLY) || (sprite[s->owner].picnum == BOSS5 && sj->picnum == BOSS5)))
{
j = nextj;
continue;
}
}
if (x == 0 || x >= 5 || AFLAMABLE(sj->picnum))

View file

@ -506,7 +506,6 @@ int parse(void)
insptr++;
if (!S_CheckSoundPlaying(g_i, *insptr++))
A_PlaySound(*(insptr - 1), g_i);
insptr++;
break;
case concmd_stopsound:
insptr++;

View file

@ -483,18 +483,6 @@ void VM_Execute(native_t loop)
A_PlaySound(ambientlotag[vm.pSprite->ang], vm.spriteNum);
continue;
case concmd_soundonce:
if (EDUKE32_PREDICT_FALSE((unsigned)*(++insptr) >= MAXSOUNDS))
{
CON_ERRPRINTF("invalid sound %d\n", (int32_t)*insptr++);
continue;
}
if (!S_CheckSoundPlaying(vm.spriteNum, *insptr++))
A_PlaySound(*(insptr - 1), vm.spriteNum);
continue;
case concmd_stopsound:
if (EDUKE32_PREDICT_FALSE((unsigned)*(++insptr) >= MAXSOUNDS))
{
@ -654,6 +642,7 @@ void VM_Execute(native_t loop)
ud.eog = 1;
continue;
case concmd_soundonce:
case concmd_isdrunk:
case concmd_strafeleft:
case concmd_straferight: