1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-23 13:43:19 +00:00

part now works on unsigned col

This commit is contained in:
Zeno Rogue 2018-07-09 18:12:23 +02:00
parent 2a96937c89
commit 4d1e641663
2 changed files with 5 additions and 0 deletions

View File

@ -2845,6 +2845,7 @@ void queueline(const hyperpoint& H1, const hyperpoint& H2, int col, int prf = 0,
hyperpoint ddi0(ld dir, ld dist);
extern ld tessf, crossf, hexf, hcrossf, hexhexdist, hexvdist, hepvdist, rhexf;
unsigned char& part(int& col, int i);
unsigned char& part(unsigned& col, int i);
transmatrix applyPatterndir(cell *c, const patterns::patterninfo& si);

View File

@ -497,6 +497,10 @@ unsigned char& part(int& col, int 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;
ld glhypot2(glvertex a, glvertex b) {