mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-29 15:32:24 +00:00
- deaddude
This commit is contained in:
parent
bd3346b231
commit
f218b81b05
1 changed files with 15 additions and 13 deletions
|
@ -764,19 +764,21 @@ void premapGonzo(short i) {
|
|||
}
|
||||
|
||||
void deaddude(short sn) {
|
||||
int j = insertsprite(sprite[sn].sectnum, DEAD);
|
||||
sprite[j].x = sprite[sn].x;
|
||||
sprite[j].y = sprite[sn].y;
|
||||
sprite[j].z = sprite[sn].z;
|
||||
sprite[j].cstat = 0;
|
||||
sprite[j].picnum = GONZOBSHDEAD;
|
||||
sprite[j].shade = sector[sprite[sn].sectnum].floorshade;
|
||||
sprite[j].pal = 0;
|
||||
sprite[j].xrepeat = sprite[sn].xrepeat;
|
||||
sprite[j].yrepeat = sprite[sn].yrepeat;
|
||||
sprite[j].owner = 0;
|
||||
sprite[j].lotag = 0;
|
||||
sprite[j].hitag = 0;
|
||||
auto& spr = sprite[sn];
|
||||
int j = insertsprite(spr.sectnum, DEAD);
|
||||
auto& spawned = sprite[j];
|
||||
spawned.x = spr.x;
|
||||
spawned.y = spr.y;
|
||||
spawned.z = spr.z;
|
||||
spawned.cstat = 0;
|
||||
spawned.picnum = GONZOBSHDEAD;
|
||||
spawned.shade = sector[spr.sectnum].floorshade;
|
||||
spawned.pal = 0;
|
||||
spawned.xrepeat = spr.xrepeat;
|
||||
spawned.yrepeat = spr.yrepeat;
|
||||
spawned.owner = 0;
|
||||
spawned.lotag = 0;
|
||||
spawned.hitag = 0;
|
||||
}
|
||||
|
||||
END_WH_NS
|
||||
|
|
Loading…
Reference in a new issue