1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-30 03:50:34 +00:00

fixup to MYSTERY_DIST removal

This commit is contained in:
Zeno Rogue 2021-08-19 01:33:07 +02:00
parent 755e1df101
commit 9b741ebb47

View File

@ -447,7 +447,6 @@ void fix_distances(tcell *c) {
void calc_distances(tcell *c) { void calc_distances(tcell *c) {
if(c->dist != MYSTERY) return; if(c->dist != MYSTERY) return;
c->dist = MYSTERY_DIST;
fix_distances(c); fix_distances(c);
} }
@ -485,7 +484,7 @@ void be_solid(tcell *c) {
ufindc(c); ufindc(c);
look_for_shortcuts(c); look_for_shortcuts(c);
ufindc(c); ufindc(c);
if(c->dist == MYSTERY_DIST) { if(c->dist == MYSTERY) {
println(hlog, "set solid but no dist ", c); println(hlog, "set solid but no dist ", c);
debuglist = { c }; debuglist = { c };
throw rulegen_failure("set solid but no dist"); throw rulegen_failure("set solid but no dist");