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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user