mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-19 11:44:48 +00:00
clearing unused TriheptaSpecial shapes to fix a crash on iOS
This commit is contained in:
parent
db744db786
commit
e61930c0b1
1
hyper.h
1
hyper.h
@ -4080,6 +4080,7 @@ struct hpcshape {
|
||||
basic_textureinfo *tinf;
|
||||
int texture_offset;
|
||||
int shs, she;
|
||||
void clear() { s = e = shs = she = texture_offset = 0; prio = PPR::ZERO; tinf = NULL; flags = 0; }
|
||||
};
|
||||
|
||||
extern vector<hpcshape> shPlainWall3D, shWireframe3D, shWall3D, shMiniWall3D;
|
||||
|
@ -1067,7 +1067,7 @@ void geometry_information::prepare_shapes() {
|
||||
|
||||
bshape(shAsymmetric, PPR::TEXT, scalefactor, 374);
|
||||
|
||||
for(auto& sh: shTriheptaSpecial) sh.s = sh.e = 0;
|
||||
for(auto& sh: shTriheptaSpecial) sh.clear();
|
||||
|
||||
bshape(shTriheptaSpecial[2], PPR::FLOOR, scalefactor, 32);
|
||||
bshape(shTriheptaSpecial[3], PPR::FLOOR, scalefactor, 33);
|
||||
|
Loading…
Reference in New Issue
Block a user