mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-11-04 07:43:02 +00:00 
			
		
		
		
	rogueviz:: fixed crystal-sokoban
This commit is contained in:
		@@ -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);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user