mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-09-29 14:30:40 +00:00
part now works on unsigned col
This commit is contained in:
parent
2a96937c89
commit
4d1e641663
1
hyper.h
1
hyper.h
@ -2845,6 +2845,7 @@ void queueline(const hyperpoint& H1, const hyperpoint& H2, int col, int prf = 0,
|
|||||||
hyperpoint ddi0(ld dir, ld dist);
|
hyperpoint ddi0(ld dir, ld dist);
|
||||||
extern ld tessf, crossf, hexf, hcrossf, hexhexdist, hexvdist, hepvdist, rhexf;
|
extern ld tessf, crossf, hexf, hcrossf, hexhexdist, hexvdist, hepvdist, rhexf;
|
||||||
unsigned char& part(int& col, int i);
|
unsigned char& part(int& col, int i);
|
||||||
|
unsigned char& part(unsigned& col, int i);
|
||||||
|
|
||||||
transmatrix applyPatterndir(cell *c, const patterns::patterninfo& si);
|
transmatrix applyPatterndir(cell *c, const patterns::patterninfo& si);
|
||||||
|
|
||||||
|
@ -497,6 +497,10 @@ unsigned char& part(int& col, int i) {
|
|||||||
unsigned char* c = (unsigned char*) &col; return c[i];
|
unsigned char* c = (unsigned char*) &col; return c[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsigned char& part(unsigned& col, int i) {
|
||||||
|
unsigned char* c = (unsigned char*) &col; return c[i];
|
||||||
|
}
|
||||||
|
|
||||||
bool in_twopoint = false;
|
bool in_twopoint = false;
|
||||||
|
|
||||||
ld glhypot2(glvertex a, glvertex b) {
|
ld glhypot2(glvertex a, glvertex b) {
|
||||||
|
Loading…
Reference in New Issue
Block a user