1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

changed goldberg_map bounds to 32

This commit is contained in:
Zeno Rogue 2018-04-11 00:53:22 +02:00
parent f459607a90
commit 7dd006bb05

View File

@ -92,16 +92,16 @@ namespace gp {
return (v.first - v.second + MODFIXER)%3; return (v.first - v.second + MODFIXER)%3;
} }
goldberg_mapping_t goldberg_map[20][20]; goldberg_mapping_t goldberg_map[32][32];
void clear_mapping() { void clear_mapping() {
for(int y=0; y<20; y++) for(int x=0; x<20; x++) { for(int y=0; y<32; y++) for(int x=0; x<32; x++) {
goldberg_map[y][x].c = NULL; goldberg_map[y][x].c = NULL;
goldberg_map[y][x].rdir = -1; goldberg_map[y][x].rdir = -1;
} }
} }
goldberg_mapping_t& get_mapping(loc c) { goldberg_mapping_t& get_mapping(loc c) {
return goldberg_map[c.second + 10][c.first + 10]; return goldberg_map[c.second&31][c.first&31];
} }
const char *disp(loc at) { const char *disp(loc at) {