mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-08 17:34:08 +00:00
added a hook on cellgen
This commit is contained in:
parent
01ed0290c2
commit
fe2d9e7da8
@ -2764,6 +2764,8 @@ EX void set_land_for_geometry(cell *c) {
|
|||||||
else if(weirdhyperbolic) setLandWeird(c);
|
else if(weirdhyperbolic) setLandWeird(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EX hookset<bool(cell *c, int d, cell *from)> hooks_cellgen;
|
||||||
|
|
||||||
EX void setdist(cell *c, int d, cell *from) {
|
EX void setdist(cell *c, int d, cell *from) {
|
||||||
|
|
||||||
if(fake::in()) return FPIU(setdist(c, d, from));
|
if(fake::in()) return FPIU(setdist(c, d, from));
|
||||||
@ -2957,6 +2959,8 @@ EX void setdist(cell *c, int d, cell *from) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
callhandlers(false, hooks_cellgen, c, d, from);
|
||||||
|
|
||||||
if(PURE && c->wall == waMirrorWall && c->land == laMirror)
|
if(PURE && c->wall == waMirrorWall && c->land == laMirror)
|
||||||
c->land = laMirrorWall; // , c->item = itPirate; // not really a proper bugfix
|
c->land = laMirrorWall; // , c->item = itPirate; // not really a proper bugfix
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user