mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
fixed gethyper (vid.stretch parameter applied)
This commit is contained in:
parent
c1243eea09
commit
dc1efea3e6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user