mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +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) {
|
hyperpoint gethyper(ld x, ld y) {
|
||||||
|
|
||||||
ld hx = (x - vid.xcenter) / vid.radius;
|
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) {
|
if(pmodel) {
|
||||||
ghx = hx, ghy = hy;
|
ghx = hx, ghy = hy;
|
||||||
|
Loading…
Reference in New Issue
Block a user