mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 12:19:18 +00:00
removed some remaining references to sval, fixed the compilation of RogueViz
This commit is contained in:
parent
313dd233a2
commit
f1f1098d95
@ -831,7 +831,6 @@ namespace conformal {
|
||||
infindhistory.clear();
|
||||
for(int i=0; i<isize(movehistory); i++)
|
||||
inmovehistory.insert(movehistory[i]);
|
||||
sval++;
|
||||
int sk = isize(killhistory);
|
||||
for(int i=0; i<sk; i++) {
|
||||
eMonster m = killhistory[i].second;
|
||||
|
2
game.cpp
2
game.cpp
@ -18,8 +18,6 @@ cell *lastmove;
|
||||
enum eLastmovetype {lmSkip, lmMove, lmAttack, lmSpecial, lmPush, lmTree};
|
||||
eLastmovetype lastmovetype;
|
||||
|
||||
int sval = 100000000;
|
||||
|
||||
bool hauntedWarning;
|
||||
bool survivalist;
|
||||
|
||||
|
@ -622,7 +622,7 @@ namespace mapeditor {
|
||||
vector<pair<cellwalker, cellwalker> > spill_list;
|
||||
|
||||
void list_spill(cellwalker tgt, cellwalker src, manual_celllister& cl) {
|
||||
spill_list.clear(); sval++;
|
||||
spill_list.clear();
|
||||
spill_list.emplace_back(tgt, src);
|
||||
int crad = 0, nextstepat = 0;
|
||||
for(int i=0; i<isize(spill_list); i++) {
|
||||
|
@ -288,21 +288,20 @@ struct cellcrawler {
|
||||
vector<cellcrawlerdata> data;
|
||||
|
||||
void store(const cellwalker& o, int from, int spin, manual_celllister& cl) {
|
||||
if(!add(o.c)) return;
|
||||
if(!cl.add(o.c)) return;
|
||||
data.emplace_back(o, from, spin);
|
||||
}
|
||||
|
||||
void build(const cellwalker& start) {
|
||||
sval++;
|
||||
data.clear();
|
||||
manual_celllister cl;
|
||||
store(start, 0, 0);
|
||||
store(start, 0, 0, cl);
|
||||
for(int i=0; i<isize(data); i++) {
|
||||
cellwalker cw0 = data[i].orig;
|
||||
for(int j=0; j<cw0.c->type; j++) {
|
||||
cellwalker cw = cw0 + j + wstep;
|
||||
if(!getNeuron(cw.c)) continue;
|
||||
store(cw, i, j);
|
||||
store(cw, i, j, cl);
|
||||
}
|
||||
}
|
||||
if(gaussian) for(cellcrawlerdata& s: data)
|
||||
|
Loading…
Reference in New Issue
Block a user