mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 13:07:16 +00:00
added lmouseover_distant
This commit is contained in:
parent
990b544e7f
commit
b879682d82
@ -64,7 +64,7 @@ EX movedir joydir;
|
||||
EX movedir mousedest;
|
||||
EX ld shiftmul = 1;
|
||||
|
||||
EX cell *mouseover, *mouseover2, *lmouseover;
|
||||
EX cell *mouseover, *mouseover2, *lmouseover, *lmouseover_distant;
|
||||
EX ld modist, modist2;
|
||||
|
||||
EX int lastt;
|
||||
|
@ -4901,6 +4901,7 @@ EX void drawthemap() {
|
||||
#if CAP_SDL
|
||||
const Uint8 *keystate = SDL12_GetKeyState(NULL);
|
||||
lmouseover = mouseover;
|
||||
lmouseover_distant = lmouseover;
|
||||
bool useRangedOrb = (!(vid.shifttarget & 1) && haveRangedOrb() && lmouseover && lmouseover->cpdist > 1) || (keystate[SDL12(SDLK_RSHIFT, SDL_SCANCODE_RSHIFT)] | keystate[SDL12(SDLK_LSHIFT, SDL_SCANCODE_LSHIFT)]);
|
||||
if(!useRangedOrb && !(cmode & sm::MAP) && !(cmode & sm::DRAW) && DEFAULTCONTROL && !mouseout() && !dual::state) {
|
||||
dynamicval<eGravity> gs(gravity_state, gravity_state);
|
||||
|
Loading…
Reference in New Issue
Block a user