mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
SW: Allow the Run key to Walk when AutoRun is enabled
git-svn-id: https://svn.eduke32.com/eduke32@8309 1a8010ca-5511-0410-912e-c29ae57300e0 # Conflicts: # source/sw/src/game.cpp # source/sw/src/player.cpp
This commit is contained in:
parent
7fb425aebb
commit
1a0b363ded
2 changed files with 5 additions and 6 deletions
|
@ -4064,7 +4064,7 @@ void getinput(SW_PACKET *loc)
|
||||||
|
|
||||||
SET_LOC_KEY(loc->bits, SK_SPACE_BAR, ((!!inputState.GetKeyStatus(KEYSC_SPACE)) | buttonMap.ButtonDown(gamefunc_Open)));
|
SET_LOC_KEY(loc->bits, SK_SPACE_BAR, ((!!inputState.GetKeyStatus(KEYSC_SPACE)) | buttonMap.ButtonDown(gamefunc_Open)));
|
||||||
|
|
||||||
int const running = BUTTON(gamefunc_Run) || TEST(pp->Flags, PF_LOCK_RUN); // G_CheckAutorun(buttonMap.ButtonDown(gamefunc_Run));
|
int const running = G_CheckAutorun(buttonMap.ButtonDown(gamefunc_Run));
|
||||||
int32_t turnamount;
|
int32_t turnamount;
|
||||||
int32_t keymove;
|
int32_t keymove;
|
||||||
constexpr int const analogExtent = 32767; // KEEPINSYNC sdlayer.cpp
|
constexpr int const analogExtent = 32767; // KEEPINSYNC sdlayer.cpp
|
||||||
|
|
|
@ -2404,7 +2404,6 @@ MoveScrollMode2D(PLAYERp pp)
|
||||||
#define MAXANGVEL 100
|
#define MAXANGVEL 100
|
||||||
|
|
||||||
ControlInfo scrl_input;
|
ControlInfo scrl_input;
|
||||||
int32_t running;
|
|
||||||
int32_t keymove;
|
int32_t keymove;
|
||||||
int32_t momx, momy;
|
int32_t momx, momy;
|
||||||
static int mfvel=0, mfsvel=0;
|
static int mfvel=0, mfsvel=0;
|
||||||
|
@ -2435,19 +2434,19 @@ MoveScrollMode2D(PLAYERp pp)
|
||||||
Follow_posy = pp->posy;
|
Follow_posy = pp->posy;
|
||||||
}
|
}
|
||||||
|
|
||||||
running = G_CheckAutorun(buttonMap.ButtonDown(gamefunc_Run));
|
|
||||||
|
|
||||||
if (buttonMap.ButtonDown(gamefunc_Strafe))
|
if (buttonMap.ButtonDown(gamefunc_Strafe))
|
||||||
mfsvel -= scrl_input.dyaw>>2;
|
mfsvel -= scrl_input.dyaw>>2;
|
||||||
mfsvel -= scrl_input.dx>>2;
|
mfsvel -= scrl_input.dx>>2;
|
||||||
mfvel = -scrl_input.dz>>2;
|
mfvel = -scrl_input.dz>>2;
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
int const running = !!BUTTON(gamefunc_Run) ^ !!TEST(pp->Flags, PF_LOCK_RUN);
|
||||||
if (running)
|
if (running)
|
||||||
{
|
{
|
||||||
//keymove = NORMALKEYMOVE << 1;
|
keymove = NORMALKEYMOVE << 1;
|
||||||
keymove = NORMALKEYMOVE;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
keymove = NORMALKEYMOVE;
|
keymove = NORMALKEYMOVE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue