1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-31 06:50:16 +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

@@ -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) {