1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 15:40:26 +00:00

fix_distances: do not fix while fixing uni

This commit is contained in:
Zeno Rogue 2021-08-25 12:57:33 +02:00
parent 0e3acfe91b
commit 9df74125bd

View File

@ -485,6 +485,7 @@ queue<tcell*> bfs_queue;
EX void fix_distances(tcell *c) { EX void fix_distances(tcell *c) {
if(flags & w_bfs) while(true) { if(flags & w_bfs) while(true) {
if(in_fixing) return;
ufindc(c); ufindc(c);
if(c->dist != MYSTERY) return; if(c->dist != MYSTERY) return;
if(tcellcount >= max_tcellcount) throw rulegen_surrender("max_tcellcount exceeded"); if(tcellcount >= max_tcellcount) throw rulegen_surrender("max_tcellcount exceeded");