mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-01 03:39:16 +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);
|
||||
}
|
||||
|
||||
EX hookset<bool(cell *c, int d, cell *from)> hooks_cellgen;
|
||||
|
||||
EX void setdist(cell *c, int d, cell *from) {
|
||||
|
||||
if(fake::in()) return FPIU(setdist(c, d, from));
|
||||
@ -2957,6 +2959,8 @@ EX void setdist(cell *c, int d, cell *from) {
|
||||
#endif
|
||||
}
|
||||
|
||||
callhandlers(false, hooks_cellgen, c, d, from);
|
||||
|
||||
if(PURE && c->wall == waMirrorWall && c->land == laMirror)
|
||||
c->land = laMirrorWall; // , c->item = itPirate; // not really a proper bugfix
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user