- replaced a few array accesses where a pointer is already available.

This commit is contained in:
Christoph Oelckers 2020-10-24 09:11:45 +02:00
parent 87e4c0fa7d
commit 42e5201e9f
3 changed files with 8 additions and 8 deletions

View file

@ -1334,12 +1334,12 @@ void checkhitsprite_d(int i, int sn)
fi.shoot(i, BLOODSPLAT3); fi.shoot(i, BLOODSPLAT3);
s->ang = krand() & 2047; s->ang = krand() & 2047;
fi.shoot(i, BLOODSPLAT4); fi.shoot(i, BLOODSPLAT4);
fi.guts(&sprite[i], JIBS1, 1, myconnectindex); fi.guts(s, JIBS1, 1, myconnectindex);
fi.guts(&sprite[i], JIBS2, 2, myconnectindex); fi.guts(s, JIBS2, 2, myconnectindex);
fi.guts(&sprite[i], JIBS3, 3, myconnectindex); fi.guts(s, JIBS3, 3, myconnectindex);
fi.guts(&sprite[i], JIBS4, 4, myconnectindex); fi.guts(s, JIBS4, 4, myconnectindex);
fi.guts(&sprite[i], JIBS5, 1, myconnectindex); fi.guts(s, JIBS5, 1, myconnectindex);
fi.guts(&sprite[i], JIBS3, 6, myconnectindex); fi.guts(s, JIBS3, 6, myconnectindex);
S_PlaySound(SQUISHED); S_PlaySound(SQUISHED);
deletesprite(i); deletesprite(i);
break; break;

View file

@ -1040,7 +1040,7 @@ int spawn_d(int j, int pn)
case CONE: case CONE:
case BOX: case BOX:
sp->cstat = 257; // Make it hitable sp->cstat = 257; // Make it hitable
sprite[i].extra = 1; sp->extra = 1;
changespritestat(i,6); changespritestat(i,6);
break; break;

View file

@ -1320,7 +1320,7 @@ int spawn_r(int j, int pn)
case TREE2: case TREE2:
case TIRE: case TIRE:
sp->cstat = 257; // Make it hitable sp->cstat = 257; // Make it hitable
sprite[i].extra = 1; sp->extra = 1;
changespritestat(i,6); changespritestat(i,6);
break; break;