From 5e09993eca8f3d362cee27c8860d39955a3e98b9 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 25 Jun 2021 14:03:11 +0200 Subject: [PATCH] rv_ignore fixup --- rogueviz/rogueviz.cpp | 2 +- rogueviz/rogueviz.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/rogueviz/rogueviz.cpp b/rogueviz/rogueviz.cpp index 84da4b3b..216fdf75 100644 --- a/rogueviz/rogueviz.cpp +++ b/rogueviz/rogueviz.cpp @@ -848,7 +848,7 @@ void readcolor(const string& cfname) { string lab2 = ""; while(true) { int c = fgetc(f); - if(rv_ignore(ch) || c == ',' || c == ';' || c == EOF) break; + if(rv_ignore(c) || c == ',' || c == ';' || c == EOF) break; else lab2 += c; } x = vdata[getid(lab2)].cp; diff --git a/rogueviz/rogueviz.h b/rogueviz/rogueviz.h index 5b3d83f7..2dc54179 100644 --- a/rogueviz/rogueviz.h +++ b/rogueviz/rogueviz.h @@ -243,6 +243,8 @@ function roguevizslide_action(char c, const T& t, const U& act) int getnewid(string s); extern string fname; + bool rv_ignore(char c); + colorpair perturb(colorpair cp); void queuedisk(const shiftmatrix& V, const colorpair& cp, bool legend, const string* info, int i);