rogueviz:: fixed crystal-sokoban

This commit is contained in:
Zeno Rogue 2021-09-30 11:33:13 +02:00
parent 9a32a462cc
commit 9564f0fdc6
1 changed files with 6 additions and 0 deletions

View File

@ -98,6 +98,8 @@ void run_sb() {
vid.use_smart_range = 2;
undos.push_back(current_state());
peace::on = true;
sb_hooks();
}
void save_undo() {
@ -171,6 +173,10 @@ void sb_hooks() {
return true;
});
rv_hook(hooks_handleKey, 50, soko_key);
on_cleanup_or_next([] {
undos.clear();
celllist.clear();
});
}
auto sbhook = arg::add2("-crystal-sokoban", run_sb);