mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	cellgfxdist and cellrelmatrix work correctly in gp
This commit is contained in:
		| @@ -4,10 +4,12 @@ | ||||
| double randd() { return (rand() + .5) / (RAND_MAX + 1.); } | ||||
|  | ||||
| double cellgfxdist(cell *c, int i) { | ||||
|   if(gp::on) return hdist0(tC0(shmup::calc_relative_matrix(c->mov[i], c))); | ||||
|   return nonbitrunc ? tessf * gp::scale : (c->type == 6 && (i&1)) ? hexhexdist : crossf; | ||||
|   } | ||||
|  | ||||
| transmatrix cellrelmatrix(cell *c, int i) { | ||||
|   if(gp::on) return shmup::calc_relative_matrix(c->mov[i], c); | ||||
|   double d = cellgfxdist(c, i); | ||||
|   return ddspin(c, i) * xpush(d) * iddspin(c->mov[i], c->spin(i), euclid ? 0 : S42); | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue