mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	fixed normalize_flat in emb_none -- this fixes centering in multiplayer
This commit is contained in:
		| @@ -398,10 +398,12 @@ struct emb_none : embedding_method { | ||||
|     return rgpushxto0(i); | ||||
|     } | ||||
|   hyperpoint flatten(hyperpoint a) override { | ||||
|     if(gproduct) return a / exp(zlevel(a)); | ||||
|     if(gproduct || GDIM == 2) return a / exp(zlevel(a)); | ||||
|     return embedding_method::flatten(a); | ||||
|     } | ||||
|  | ||||
|   hyperpoint normalize_flat(hyperpoint a) override { return normalize(a); } | ||||
|  | ||||
|   transmatrix base_to_actual(const transmatrix& T) override { return T; } | ||||
|   hyperpoint base_to_actual(hyperpoint h) override { return h; } | ||||
|   transmatrix actual_to_base(const transmatrix& T) override { return T; } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue