1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-01 10:17:56 +00:00

particles in shmup now appear from the correct locaton

This commit is contained in:
Zeno Rogue
2025-05-25 09:10:26 +02:00
parent ec90291da5
commit 2c3f5b5bf2
2 changed files with 19 additions and 15 deletions

View File

@@ -302,7 +302,11 @@ void killMonster(monster* m, eMonster who_kills, flagtype flags = 0) {
m->inBoat = false;
}
m->base->monst = m->type;
int pos = isize(flashes);
killMonster(m->base, who_kills, flags);
for(int i=pos; i<isize(flashes); i++)
if(flashes[i].where == m->base)
flashes[i].angle_matrix = m->at * flashes[i].angle_matrix;
m->base->monst = m->stk;
if(multi::cpid >= 0)
multi::kills[multi::cpid] += tkills() - tk;