1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-20 16:37:40 +00:00

removed the EUCSCALE parameter for consistency

This commit is contained in:
Zeno Rogue
2018-02-20 11:15:08 +01:00
parent 2dc2b6ed6d
commit babb8fbde4
4 changed files with 6 additions and 26 deletions

View File

@@ -435,12 +435,10 @@ void buildTorusRug() {
applymodel(tC0(eumove(x, y)), onscreen);
// take point (1,0)
// apply eumove(1,0)
// divide by EUCSCALE
// multiply by vid.radius (= HTEXTURESIZE * rugzoom)
// add 1, divide by texturesize
r->x1 = onscreen[0];
r->y1 = onscreen[1];
// r->y1 = (1 + onscreen[1] * rugzoom / EUCSCALE)/2;
hyperpoint h1 = hpxyz(x, y, 0);
hyperpoint h2 = z2 * h1;
double alpha = -h2[0] * 2 * M_PI;