1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-25 23:06:02 +00:00

HUD elements, including the compass, now drawn correctly in all pmodels

This commit is contained in:
Zeno Rogue
2017-11-13 11:08:06 +01:00
parent 672f4d7b9e
commit 19f12e3068
9 changed files with 122 additions and 70 deletions

View File

@@ -14,7 +14,7 @@
#define NOLICENSE
#endif
#define VER "10.23"
#define VER "10.2c"
#define VERNUM 10203
#define VERNUM_HEX 0xA093
@@ -86,6 +86,10 @@
#define CAP_SDL (!ISMOBILE)
#endif
#ifdef CAP_COMPASS
#define CAP_COMPASS ISMOBILE
#endif
#ifndef CAP_SDLGFX
#define CAP_SDLGFX (CAP_SDL && !ISWEB)
#endif
@@ -472,22 +476,7 @@ bool useRangedOrb;
void handleclick(MOBPAR_FORMAL) {
if(!shmup::on && andmode == 0 && size(screens) == 1 && canmove && !useRangedOrb && vid.mobilecompasssize > 0) {
using namespace shmupballs;
int dx = mousex - xmove;
int dy = mousey - yb;
int h = hypot(dx, dy);
if(h < rad) {
if(h < rad*SKIPFAC) movepcto(MD_WAIT);
else {
double d = vid.revcontrol ? -1 : 1;
mouseh = hpxy(dx * d / rad, dy * d / rad);
mousemovement();
}
getcstat = 0;
return;
}
}
if(handleCompass()) return;
if(buttonclicked || mouseout()) {