- deaddude

This commit is contained in:
Christoph Oelckers 2021-11-21 11:50:21 +01:00
parent bd3346b231
commit f218b81b05

View file

@ -764,19 +764,21 @@ void premapGonzo(short i) {
} }
void deaddude(short sn) { void deaddude(short sn) {
int j = insertsprite(sprite[sn].sectnum, DEAD); auto& spr = sprite[sn];
sprite[j].x = sprite[sn].x; int j = insertsprite(spr.sectnum, DEAD);
sprite[j].y = sprite[sn].y; auto& spawned = sprite[j];
sprite[j].z = sprite[sn].z; spawned.x = spr.x;
sprite[j].cstat = 0; spawned.y = spr.y;
sprite[j].picnum = GONZOBSHDEAD; spawned.z = spr.z;
sprite[j].shade = sector[sprite[sn].sectnum].floorshade; spawned.cstat = 0;
sprite[j].pal = 0; spawned.picnum = GONZOBSHDEAD;
sprite[j].xrepeat = sprite[sn].xrepeat; spawned.shade = sector[spr.sectnum].floorshade;
sprite[j].yrepeat = sprite[sn].yrepeat; spawned.pal = 0;
sprite[j].owner = 0; spawned.xrepeat = spr.xrepeat;
sprite[j].lotag = 0; spawned.yrepeat = spr.yrepeat;
sprite[j].hitag = 0; spawned.owner = 0;
spawned.lotag = 0;
spawned.hitag = 0;
} }
END_WH_NS END_WH_NS