mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-31 04:54:29 +00:00
fixed gethyper (vid.stretch parameter applied)
This commit is contained in:
1 parent
c1243eea09
commit
dc1efea3e6
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user