mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-14 11:50:49 +00:00
- SW: Abort GetInput immediately if no valid sprite is attached to the given player.
This commit is contained in:
parent
5d5af0cb09
commit
ae94fb921c
1 changed files with 3 additions and 2 deletions
|
@ -162,7 +162,9 @@ static void processWeapon(PLAYERp const pp)
|
||||||
|
|
||||||
void GameInterface::GetInput(InputPacket *packet, ControlInfo* const hidInput)
|
void GameInterface::GetInput(InputPacket *packet, ControlInfo* const hidInput)
|
||||||
{
|
{
|
||||||
if (paused || M_Active())
|
PLAYERp pp = &Player[myconnectindex];
|
||||||
|
|
||||||
|
if (paused || M_Active() || pp->PlayerSprite <= -1)
|
||||||
{
|
{
|
||||||
loc = {};
|
loc = {};
|
||||||
return;
|
return;
|
||||||
|
@ -170,7 +172,6 @@ void GameInterface::GetInput(InputPacket *packet, ControlInfo* const hidInput)
|
||||||
|
|
||||||
double const scaleAdjust = InputScale();
|
double const scaleAdjust = InputScale();
|
||||||
InputPacket input {};
|
InputPacket input {};
|
||||||
PLAYERp pp = &Player[myconnectindex];
|
|
||||||
|
|
||||||
ApplyGlobalInput(loc, hidInput);
|
ApplyGlobalInput(loc, hidInput);
|
||||||
processMovement(&input, &loc, hidInput, scaleAdjust, 0, !pp->sop, pp->sop_control ? 3. / 1.40625 : 1.);
|
processMovement(&input, &loc, hidInput, scaleAdjust, 0, !pp->sop, pp->sop_control ? 3. / 1.40625 : 1.);
|
||||||
|
|
Loading…
Reference in a new issue