mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 06:27:17 +00:00
rogueviz:: better spillcolor
This commit is contained in:
parent
aaaef26bae
commit
1ea6b88f81
@ -511,6 +511,7 @@ bool drawVertex(const shiftmatrix &V, cell *c, shmup::monster *m) {
|
||||
int i = m->pid;
|
||||
vertexdata& vd = vdata[i];
|
||||
|
||||
if(vd.spillcolor != DEFAULT_COLOR) c->landparam = vd.spillcolor >> 8;
|
||||
// bool ghilite = false;
|
||||
|
||||
// if(vd.special && specialmark) ghilite = true;
|
||||
@ -816,7 +817,7 @@ void readcolor(const string& cfname) {
|
||||
color_t col;
|
||||
int err = fscanf(f, "%08x", &col);
|
||||
if(err <= 0) throw hstream_exception("reading dot-color");
|
||||
action = [col] (vertexdata &vd) { vd.m->base->landparam = col >> 8; };
|
||||
action = [col] (vertexdata &vd) { vd.spillcolor = col; };
|
||||
}
|
||||
else if(c2 == '/') {
|
||||
string s = str_to_eol();
|
||||
|
@ -112,8 +112,9 @@ namespace rogueviz {
|
||||
int data;
|
||||
vector<string> urls;
|
||||
vector<string> infos;
|
||||
color_t spillcolor;
|
||||
shmup::monster *m;
|
||||
vertexdata() { virt = NULL; m = NULL; special = false; }
|
||||
vertexdata() { virt = NULL; m = NULL; special = false; spillcolor = DEFAULT_COLOR; }
|
||||
};
|
||||
|
||||
extern vector<vertexdata> vdata;
|
||||
|
Loading…
Reference in New Issue
Block a user