1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 11:19:59 +00:00

more handle_distance_errors

This commit is contained in:
Zeno Rogue 2021-08-19 13:14:57 +02:00
parent 5e249ba4f4
commit d7f40b8cdb

View File

@ -811,8 +811,9 @@ int get_side(twalker what) {
int d = get_parent_dir(cw.at);
ufind(cw);
if(cw.at->move(d)->dist >= cw.at->dist) {
println(hlog, "/CSV/ get_parent_dir error at ", cw, " and ", cw.at->move(d), ": ", cw.at->dist, "::", cw.at->move(d)->dist);
exit(1);
handle_distance_errors();
println(hlog, "get_parent_dir error at ", cw, " and ", cw.at->move(d), ": ", cw.at->dist, "::", cw.at->move(d)->dist);
throw rulegen_failure("get_parent_dir error");
}
cw.spin = d;
cw += wstep;