mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
fixed the Compass in Gans/ortho projection
This commit is contained in:
parent
2f276f5016
commit
0ce82e23bd
@ -12,7 +12,7 @@ namespace shmupballs {
|
||||
int xmove, xfire, yb, rad;
|
||||
|
||||
void calc() {
|
||||
rad = vid.radius * (vid.mobilecompasssize ? vid.mobilecompasssize : 14) / 100;
|
||||
rad = min(vid.radius, min(vid.xres, vid.yres) / 2) * (vid.mobilecompasssize ? vid.mobilecompasssize : 14) / 100;
|
||||
xmove = max(vid.xcenter - vid.radius - rad, rad);
|
||||
xfire = min(vid.xcenter + vid.radius + rad, vid.xres - rad);
|
||||
yb = vid.ycenter + vid.radius - rad;
|
||||
|
Loading…
Reference in New Issue
Block a user