1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-07 04:47:56 +00:00

fake:: fixed some bugs with patterns working incorrectly

This commit is contained in:
Zeno Rogue
2020-06-03 11:46:50 +02:00
parent bc63ca3f81
commit ffa4589705
3 changed files with 8 additions and 0 deletions

View File

@@ -188,6 +188,7 @@ struct hrmap_spherical : hrmap_standard {
};
EX heptagon *getDodecahedron(int i) {
if(fake::in()) return FPIU(getDodecahedron(i));
hrmap_spherical *s = dynamic_cast<hrmap_spherical*> (currentmap);
if(!s) return NULL;
return s->dodecahedron[i];