mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
gp:: drawrec(boundary) removed, no longer needed
This commit is contained in:
parent
489b9a328d
commit
6c02c9879a
2
hyper.h
2
hyper.h
@ -3496,7 +3496,7 @@ void queuestr(const hyperpoint& h, int size, const string& chr, int col, int fra
|
||||
void queuechr(const transmatrix& V, double size, char chr, int col, int frame = 0);
|
||||
|
||||
extern bool just_gmatrix;
|
||||
void drawrec(const heptspin& hs, hstate s, const transmatrix& V, int boundary = 0);
|
||||
void drawrec(const heptspin& hs, hstate s, const transmatrix& V);
|
||||
|
||||
bool haveLeaderboard(int id);
|
||||
int get_currentscore(int id);
|
||||
|
@ -555,7 +555,7 @@ void drawrec(cell *c, const transmatrix& V) {
|
||||
}
|
||||
}
|
||||
|
||||
void drawrec(const heptspin& hs, hstate s, const transmatrix& V, int boundary) {
|
||||
void drawrec(const heptspin& hs, hstate s, const transmatrix& V) {
|
||||
|
||||
// shmup::calc_relative_matrix(cwt.c, hs.h);
|
||||
|
||||
@ -585,14 +585,11 @@ void drawrec(const heptspin& hs, hstate s, const transmatrix& V, int boundary) {
|
||||
}
|
||||
}
|
||||
|
||||
if(c->pathdist < PINFD && in_qrange(V)) boundary = 0;
|
||||
else if(S3 == 4 && gp::on) boundary++; else boundary += 2;
|
||||
|
||||
if(boundary < 2) for(int d=0; d<S7; d++) {
|
||||
if(c->pathdist < PINFD && in_qrange(V)) for(int d=0; d<S7; d++) {
|
||||
hstate s2 = transition(s, d);
|
||||
if(s2 == hsError) continue;
|
||||
heptspin hs2 = hs + d + wstep;
|
||||
drawrec(hs2, s2, V * heptmove[d], s);
|
||||
drawrec(hs2, s2, V * heptmove[d]);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user