Fix a (likely harmless) integer overflow in shmup.cpp.
shmup.cpp: In function ‘void hr::shmup::moveMonster(hr::shmup::monster*, int)’: shmup.cpp:1851:41: error: overflow in implicit constant conversion [-Werror=overflow] else killMonster(m, moNone, AF_CRUSH); ^
This commit is contained in:
parent
561a3ebade
commit
364c33b1d8
|
@ -238,7 +238,7 @@ bool isMonster(monster *m) { return m->type != moPlayer && m->type != moBullet;
|
||||||
|
|
||||||
EX hookset<bool(shmup::monster*)> *hooks_kill;
|
EX hookset<bool(shmup::monster*)> *hooks_kill;
|
||||||
|
|
||||||
void killMonster(monster* m, eMonster who_kills, int flags = 0) {
|
void killMonster(monster* m, eMonster who_kills, flagtype flags = 0) {
|
||||||
int tk = tkills();
|
int tk = tkills();
|
||||||
if(callhandlers(false, hooks_kill, m)) return;
|
if(callhandlers(false, hooks_kill, m)) return;
|
||||||
if(m->dead) return;
|
if(m->dead) return;
|
||||||
|
|
Loading…
Reference in New Issue