Sound fix

git-svn-id: https://svn.eduke32.com/eduke32@553 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2007-08-14 21:29:44 +00:00
parent 0b1f6f91a9
commit 3fcc3771bd
2 changed files with 3 additions and 2 deletions

View file

@ -1239,7 +1239,9 @@ static void movefx(void)
if (p == myconnectindex && ps[p].cursectnum == s->sectnum)
{
j = s->lotag+((unsigned)global_random%(s->hitag+1));
if (j < NUM_SOUNDS && sounds[j])
sound(j);
else OSD_Printf("WARNING: invalid sound #%d\n",j);
T5 = 26*40 + (global_random%(26*40));
}
}

View file

@ -4650,7 +4650,6 @@ static void InitProjectiles(void)
projectile[i].offset = 448;
projectile[i].bounces = numfreezebounces;
projectile[i].bsound = PIPEBOMB_BOUNCE;
// defaultprojectile[i] = projectile[i];
}
Bmemcpy(&defaultprojectile, &projectile, sizeof(projectile));
}