1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

fix cpid crash

This commit is contained in:
Zeno Rogue 2019-03-30 17:54:54 +01:00
parent b1033884d9
commit 6d87b282c3

View File

@ -3614,11 +3614,11 @@ bool drawMonster(const transmatrix& V, cell *c, const transmatrix*& Vboat, trans
if(callhandlers(false, hooks_draw, V, c, m)) continue;
switch(m->type) {
case moPlayer:
case moPlayer: {
playerfound = true;
if(!hide_player() || !subscreens::is_current_player(m->pid)) {
dynamicval<int> d(cpid, m->pid);
if(!hide_player() || !subscreens::is_current_player(m->pid)) {
drawPlayerEffects(view, c, true);
if(DIM == 3) view = view * spin(-M_PI/2);
if(m->inBoat) m->footphase = 0;
@ -3643,6 +3643,7 @@ bool drawMonster(const transmatrix& V, cell *c, const transmatrix*& Vboat, trans
}
break;
}
case moBullet: {
color_t col;
cpid = m->pid;