mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +00:00
- Duke: don't process input when not in a game.
This commit is contained in:
parent
a2f17b1de3
commit
07eda3cb4a
1 changed files with 3 additions and 3 deletions
|
@ -768,9 +768,9 @@ static void processVehicleInput(player_struct *p, ControlInfo* const hidInput, I
|
||||||
|
|
||||||
static void FinalizeInput(player_struct *p, InputPacket& input)
|
static void FinalizeInput(player_struct *p, InputPacket& input)
|
||||||
{
|
{
|
||||||
if (movementBlocked(p) || p->GetActor()->s->extra <= 0 || (p->dead_flag && !ud.god && !p->resurrected))
|
if (gamestate != GS_LEVEL || movementBlocked(p) || p->GetActor()->s->extra <= 0 || (p->dead_flag && !ud.god && !p->resurrected))
|
||||||
{
|
{
|
||||||
// neutralize all movement when blocked or in automap follow mode
|
// neutralize all movement when not in a game, blocked or in automap follow mode
|
||||||
loc.fvel = loc.svel = 0;
|
loc.fvel = loc.svel = 0;
|
||||||
loc.avel = loc.horz = 0;
|
loc.avel = loc.horz = 0;
|
||||||
input.avel = input.horz = 0;
|
input.avel = input.horz = 0;
|
||||||
|
@ -804,7 +804,7 @@ static void FinalizeInput(player_struct *p, InputPacket& input)
|
||||||
|
|
||||||
void GameInterface::GetInput(InputPacket* packet, ControlInfo* const hidInput)
|
void GameInterface::GetInput(InputPacket* packet, ControlInfo* const hidInput)
|
||||||
{
|
{
|
||||||
if (paused)
|
if (paused || gamestate != GS_LEVEL)
|
||||||
{
|
{
|
||||||
loc = {};
|
loc = {};
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue