1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 19:29:59 +00:00

fixed gethyper (vid.stretch parameter applied)

This commit is contained in:
Zeno Rogue 2018-08-14 08:57:59 +02:00
parent c1243eea09
commit dc1efea3e6

View File

@ -23,7 +23,7 @@ void camrotate(ld& hx, ld& hy) {
hyperpoint gethyper(ld x, ld y) {
ld hx = (x - vid.xcenter) / vid.radius;
ld hy = (y - vid.ycenter) / vid.radius;
ld hy = (y - vid.ycenter) / vid.radius / vid.stretch;
if(pmodel) {
ghx = hx, ghy = hy;