1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

rogueviz::notknot:: check wallcolor

This commit is contained in:
Zeno Rogue 2021-03-31 10:55:16 +02:00
parent 50ddd5c6fc
commit 6ed4b564ef

View File

@ -992,7 +992,7 @@ struct hrmap_notknot : hrmap {
}
for(int i=0; i<isize(all); i++)
if(all[i]->iswall() && ufind(all[i]) == all[i]) {
if(all[i]->iswall() && ufind(all[i]) == all[i] && all[i]->wallcolor) {
all[i]->wallcolor = hrand(0x1000000) | 0x404040,
all[i]->wallcolor2 = hrand(0x1000000) | 0x404040;
}