mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	fixed Zebra-patterned lands in Zebra quotient space
This commit is contained in:
		| @@ -160,8 +160,12 @@ EX int default_levs() { | |||||||
|  |  | ||||||
| #if HDR | #if HDR | ||||||
| namespace altmap { | namespace altmap { | ||||||
|  |  | ||||||
|  |   /* in quotient space we cannot use alt for quotient */ | ||||||
|  |   extern map<heptagon*, short> quotient_relspins; | ||||||
|  |  | ||||||
|   /** h->move(relspin(h->alt)) corresponds to h->alt->move(0) */ |   /** h->move(relspin(h->alt)) corresponds to h->alt->move(0) */ | ||||||
|   inline short& relspin(heptagon *alt) { return alt->zebraval; } |   inline short& relspin(heptagon *alt) { return quotient ? quotient_relspins[alt] : alt->zebraval; } | ||||||
|  |  | ||||||
|   /** for Camelot, the radius */ |   /** for Camelot, the radius */ | ||||||
|   inline short& radius(heptagon *alt) { return alt->emeraldval; } |   inline short& radius(heptagon *alt) { return alt->emeraldval; } | ||||||
| @@ -176,6 +180,9 @@ namespace altmap { | |||||||
|   } |   } | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  | map<heptagon*, short> altmap::quotient_relspins; | ||||||
|  | auto qclear = addHook(hooks_clearmemory, 200, [] { altmap::quotient_relspins.clear(); }); | ||||||
|  |  | ||||||
| void hrmap::extend_altmap(heptagon *h, int levs, bool link_cdata) { | void hrmap::extend_altmap(heptagon *h, int levs, bool link_cdata) { | ||||||
|   if(hybri) { PIU ( extend_altmap(h, levs, link_cdata) ); } |   if(hybri) { PIU ( extend_altmap(h, levs, link_cdata) ); } | ||||||
|   if(!h->alt) return; |   if(!h->alt) return; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue