From 621220cf131254a6172c77ca8634dbfdd5c7312c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 6 Sep 2018 22:34:35 +0200 Subject: [PATCH] hooks in drawmarkers --- graph.cpp | 3 ++- hyper.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/graph.cpp b/graph.cpp index 5d73e927..93e036b6 100644 --- a/graph.cpp +++ b/graph.cpp @@ -15,7 +15,7 @@ int detaillevel = 0; hookset *hooks_handleKey; hookset *hooks_drawcell; -purehookset hooks_frame; +purehookset hooks_frame, hooks_markers; #define WOLNIEJ 1 #define BTOFF 0x404040 @@ -4973,6 +4973,7 @@ void drawMarkers() { if(!(cmode & sm::NORMAL)) return; + callhooks(hooks_markers); viewmat(); for(cell *c1: crush_now) diff --git a/hyper.h b/hyper.h index 84f7f676..c3837427 100644 --- a/hyper.h +++ b/hyper.h @@ -2231,7 +2231,7 @@ template int addHook(hookset*& m, int prio, const U& hook) return 0; } -extern purehookset hooks_frame, hooks_stats, clearmemory, hooks_config, hooks_tests, hooks_removecells, hooks_initgame, hooks_calcparam, hooks_mainmenu, hooks_startmenu; +extern purehookset hooks_frame, hooks_stats, clearmemory, hooks_config, hooks_tests, hooks_removecells, hooks_initgame, hooks_calcparam, hooks_mainmenu, hooks_startmenu, hooks_markers; template void callhooks(hookset *h, U... args) { if(h) for(auto& p: *h) p.second(args...);