shmup:: Bulls now correctly destroy walls they crash into

This commit is contained in:
Zeno Rogue 2022-11-03 19:36:09 +01:00
parent 4daacb7337
commit 774c8a9744
1 changed files with 7 additions and 1 deletions

View File

@ -2433,8 +2433,14 @@ void moveMonster(monster *m, int delta) {
}
else {
if(peace::on) { igo++; goto igo_retry; }
if(m->type == moRagingBull && m->stunoff == CHARGING)
if(m->type == moRagingBull && m->stunoff == CHARGING) {
auto old = m->base->monst;
m->base->monst = m->type;
beastcrash(c2, m->base);
if(m->base->monst != m->type) m->dead = true;
m->base->monst = old;
m->stunoff = curtime + BULLSTUN;
}
}
}