mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-19 07:20:25 +00:00
do not crash on memory clean in case of precision errors
This commit is contained in:
parent
42d87d39ac
commit
25dba5a13c
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user