1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

rogueviz::qtm now uses hooks_cellgen

This commit is contained in:
Zeno Rogue 2020-08-23 00:16:50 +02:00
parent fe2d9e7da8
commit f04400f9de

View File

@ -104,7 +104,7 @@ void set_cell(cell *c) {
bool qtm_on;
bool may_set_cell(cell *c, const shiftmatrix& T) {
bool may_set_cell(cell *c, int d, cell *from) {
if(qtm_on) set_cell(c);
return false;
}
@ -219,7 +219,7 @@ int args() {
auto hooks = addHook(hooks_drawcell, 100, may_set_cell)
auto hooks = addHook(hooks_cellgen, 100, may_set_cell)
+ addHook(hooks_args, 100, args);
}