1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-28 04:17:39 +00:00

Fix some unguarded bits of CAP_BT and CAP_CRYSTAL.

Found by trying to build with `-DISMINI=0`, not that that
comes even close to working.
This commit is contained in:
Arthur O'Dwyer
2020-05-03 21:21:14 -04:00
parent 3e3457bd81
commit 36136dab6a
4 changed files with 14 additions and 8 deletions

View File

@@ -433,16 +433,16 @@ hpcshape
ld alpha;
int area;
};
shared_ptr<gpdata_t> gpdata;
shared_ptr<gpdata_t> gpdata = nullptr;
#endif
int state;
int usershape_state;
int state = 0;
int usershape_state = 0;
/** contains the texture point coordinates for 3D models */
basic_textureinfo models_texture;
geometry_information() { last = NULL; state = usershape_state = 0; gpdata = NULL; }
geometry_information() { last = NULL; }
void require_basics() { if(state & 1) return; state |= 1; prepare_basics(); }
void require_shapes() { if(state & 2) return; state |= 2; prepare_shapes(); }