1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-22 09:27:40 +00:00

calls to rogueviz::mark and rogueviz::fixparam from HR main are now replaced by hooks

This commit is contained in:
Zeno Rogue
2018-07-09 18:59:12 +02:00
parent 827ae794d6
commit 508c63d731
7 changed files with 11 additions and 17 deletions

View File

@@ -8044,10 +8044,10 @@ bool mightBeMine(cell *c) {
return c->wall == waMineUnknown || c->wall == waMineMine;
}
hookset<bool(cell*)> *hooks_mark;
void performMarkCommand(cell *c) {
#if CAP_ROGUEVIZ
rogueviz::mark(c);
#endif
if(callhandlers(false, hooks_mark, c)) return;
if(c->land == laCA && c->wall == waNone)
c->wall = waFloorA;
else if(c->land == laCA && c->wall == waFloorA)