mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-30 15:39:54 +00:00
rogueviz:: fixed crystal-sokoban
This commit is contained in:
parent
9a32a462cc
commit
9564f0fdc6
@ -98,6 +98,8 @@ void run_sb() {
|
|||||||
vid.use_smart_range = 2;
|
vid.use_smart_range = 2;
|
||||||
undos.push_back(current_state());
|
undos.push_back(current_state());
|
||||||
peace::on = true;
|
peace::on = true;
|
||||||
|
|
||||||
|
sb_hooks();
|
||||||
}
|
}
|
||||||
|
|
||||||
void save_undo() {
|
void save_undo() {
|
||||||
@ -171,6 +173,10 @@ void sb_hooks() {
|
|||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
rv_hook(hooks_handleKey, 50, soko_key);
|
rv_hook(hooks_handleKey, 50, soko_key);
|
||||||
|
on_cleanup_or_next([] {
|
||||||
|
undos.clear();
|
||||||
|
celllist.clear();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
auto sbhook = arg::add2("-crystal-sokoban", run_sb);
|
auto sbhook = arg::add2("-crystal-sokoban", run_sb);
|
||||||
|
Loading…
Reference in New Issue
Block a user