mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	clearing unused TriheptaSpecial shapes to fix a crash on iOS
This commit is contained in:
		
							
								
								
									
										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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue