mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-04-18 07:51:22 +00:00
gp:: replaced the magic constants 15, 16, 31, 32 with named constants derived from GOLDBERG_BITS
This commit is contained in:
@@ -1588,7 +1588,7 @@ void drawrec(cell *c, const transmatrix& V) {
|
||||
|
||||
bool drawrec(cell *c, const shiftmatrix& V, gp::loc at, int dir, int maindir) {
|
||||
bool res = false;
|
||||
shiftmatrix V1 = V * cgi.gpdata->Tf[draw_li.last_dir][at.first&31][at.second&31][fixg6(dir)];
|
||||
shiftmatrix V1 = V * cgi.gpdata->Tf[draw_li.last_dir][at.first&GOLDBERG_MASK][at.second&GOLDBERG_MASK][fixg6(dir)];
|
||||
if(do_draw(c, V1)) {
|
||||
/* auto li = get_local_info(c);
|
||||
if((dir - li.total_dir) % S6) printf("totaldir %d/%d\n", dir, li.total_dir);
|
||||
|
||||
Reference in New Issue
Block a user