diff --git a/src/game/g_holmes.pas b/src/game/g_holmes.pas
index 210368deda7b60c463d95b1acc1b13fe11395527..87788a4b03b6f2ac449ecf91a5de91ae524a6ea1 100644 (file)
--- a/src/game/g_holmes.pas
+++ b/src/game/g_holmes.pas
kbS: Word = 0; // keyboard modifiers state
showMonsInfo: Boolean = false;
showMonsLOS2Plr: Boolean = false;
+ showAllMonsCells: Boolean = false;
// ////////////////////////////////////////////////////////////////////////// //
}
end;
+ function highlightAllMonsterCells (mon: TMonster): Boolean;
+ begin
+ result := false; // don't stop
+ monsGrid.forEachBodyCell(mon.proxyId, hilightCell);
+ end;
+
var
mon: TMonster;
mx, my, mw, mh: Integer;
end;
end;
+ if showAllMonsCells then g_Mons_ForEach(highlightAllMonsterCells);
+
//e_DrawPoint(16, laserX0, laserY0, 255, 255, 255);
glPopMatrix();
showMonsLOS2Plr := not showMonsLOS2Plr;
exit;
end;
+ // M-G: toggle "show all cells occupied by monsters"
+ if (ev.scan = SDL_SCANCODE_G) and ((ev.kstate and THKeyEvent.ModAlt) <> 0) then
+ begin
+ result := true;
+ showAllMonsCells := not showAllMonsCells;
+ exit;
+ end;
end;
end;