mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-30 21:42:59 +00:00 
			
		
		
		
	arb:: fixed reloading
This commit is contained in:
		| @@ -26,6 +26,8 @@ struct shape { | |||||||
|  |  | ||||||
| struct arbi_tiling { | struct arbi_tiling { | ||||||
|  |  | ||||||
|  |   int order; | ||||||
|  |  | ||||||
|   vector<shape> shapes; |   vector<shape> shapes; | ||||||
|   string name; |   string name; | ||||||
|   string comment; |   string comment; | ||||||
| @@ -76,6 +78,7 @@ void load(const string& fname) { | |||||||
|     s += c; |     s += c; | ||||||
|     } |     } | ||||||
|   auto& c = current; |   auto& c = current; | ||||||
|  |   c.order++; | ||||||
|   c.shapes.clear(); |   c.shapes.clear(); | ||||||
|   c.name = unnamed; |   c.name = unnamed; | ||||||
|   c.comment = ""; |   c.comment = ""; | ||||||
|   | |||||||
| @@ -880,7 +880,7 @@ EX void check_cgi() { | |||||||
|  |  | ||||||
|   if(arcm::in()) V("ARCM", arcm::current.symbol); |   if(arcm::in()) V("ARCM", arcm::current.symbol); | ||||||
|  |  | ||||||
|   if(arb::in()) V("ARB", arb::current.name); |   if(arb::in()) V("ARB", its(arb::current.order)); | ||||||
|    |    | ||||||
|   if(cryst) V("CRYSTAL", its(ginf[gCrystal].sides) + its(ginf[gCrystal].vertex)); |   if(cryst) V("CRYSTAL", its(ginf[gCrystal].sides) + its(ginf[gCrystal].vertex)); | ||||||
|    |    | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue