mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-23 15:36:59 +00:00
rogueviz::kohonen:: no levellines if lv.qty < 0
This commit is contained in:
parent
b04e505b2b
commit
bfd635dedd
@ -969,7 +969,7 @@ namespace levelline {
|
|||||||
if(levellines.size() == 0) create();
|
if(levellines.size() == 0) create();
|
||||||
on = false;
|
on = false;
|
||||||
for(auto& lv: levellines) {
|
for(auto& lv: levellines) {
|
||||||
if(!lv.qty) { lv.values.clear(); continue; }
|
if(!lv.qty || lv.qty < 0) { lv.values.clear(); continue; }
|
||||||
on = true;
|
on = true;
|
||||||
if(!lv.modified) continue;
|
if(!lv.modified) continue;
|
||||||
lv.modified = false;
|
lv.modified = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user