mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	fixed fieldval_uniq on torus -- affects Blizzard/Volcano/Ruined
This commit is contained in:
		| @@ -310,7 +310,8 @@ int fieldval_uniq(cell *c) { | ||||
|     return decodeId(c->master); | ||||
|     } | ||||
|   else if(euclid) { | ||||
|     return torusconfig::vec_to_id(cell_to_vec(c)); | ||||
|     auto p = cell_to_pair(c); | ||||
|     return gmod(p.first * torusconfig::dx + p.second * torusconfig::dy, torusconfig::qty); | ||||
|     } | ||||
|   if(ctof(c)) return c->master->fieldval/S7; | ||||
|   else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue