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:
parent
b04e505b2b
commit
bfd635dedd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user