mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-30 21:42:59 +00:00 
			
		
		
		
	do not crash on memory clean in case of precision errors
This commit is contained in:
		
							
								
								
									
										2
									
								
								cell.cpp
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								cell.cpp
									
									
									
									
									
								
							| @@ -380,7 +380,7 @@ EX void clearcell(cell *c) { | ||||
|     if(c->move(t)->move(c->c.spin(t)) != NULL && | ||||
|       c->move(t)->move(c->c.spin(t)) != c) { | ||||
|         DEBB(DF_MEMORY | DF_ERROR, (format("cell error: type = %d %d -> %d\n", c->type, t, c->c.spin(t)))); | ||||
|         exit(1); | ||||
|         if(worst_precision_error < 1e-3) exit(1); | ||||
|         } | ||||
|     c->move(t)->move(c->c.spin(t)) = NULL; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue