1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-10-31 19:36:16 +00:00

rogueviz::kohonen:: no levellines if lv.qty < 0

This commit is contained in:
Zeno Rogue 2021-03-31 00:52:43 +02:00
parent b04e505b2b
commit bfd635dedd

View File

@ -969,7 +969,7 @@ namespace levelline {
if(levellines.size() == 0) create();
on = false;
for(auto& lv: levellines) {
if(!lv.qty) { lv.values.clear(); continue; }
if(!lv.qty || lv.qty < 0) { lv.values.clear(); continue; }
on = true;
if(!lv.modified) continue;
lv.modified = false;