1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-25 23:06:02 +00:00

added hooks_initgame, hooks_drawcell allows replacement

This commit is contained in:
Zeno Rogue
2018-05-26 01:11:19 +02:00
parent 5cd3ccabb8
commit aafe464bc6
3 changed files with 7 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ bool mmspatial, mmhigh, mmmon, mmitem;
int detaillevel = 0;
hookset<bool(int sym, int uni)> *hooks_handleKey;
hookset<void(cell *c, const transmatrix& V)> *hooks_drawcell;
hookset<bool(cell *c, const transmatrix& V)> *hooks_drawcell;
purehookset hooks_frame;
#define WOLNIEJ 1
@@ -3447,7 +3447,7 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
// if(behindsphere(V)) return;
callhooks(hooks_drawcell, c, V);
if(callhandlers(0, hooks_drawcell, c, V)) return;
ld dist0 = hdist0(tC0(V)) - 1e-6;
if(dist0 < geom3::highdetail) detaillevel = 2;