1
0
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:
Zeno Rogue 2017-11-07 13:09:57 +01:00
parent 2f276f5016
commit 0ce82e23bd

View File

@ -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;