mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-25 21:41:55 +00:00
- WHaven: Uplift gi->GetInput()
to work after merging.
This commit is contained in:
parent
0ccf2bb9ef
commit
8f4cd93023
3 changed files with 6 additions and 7 deletions
|
@ -93,7 +93,7 @@ static void UpdatePlayerSpriteAngle(PLAYER& plr)
|
||||||
plr.actor()->s().ang = plr.angle.ang.asbuild();
|
plr.actor()->s().ang = plr.angle.ang.asbuild();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameInterface::GetInput(InputPacket* packet, ControlInfo* const hidInput)
|
void GameInterface::GetInput(ControlInfo* const hidInput, double const scaleAdjust, InputPacket* packet)
|
||||||
{
|
{
|
||||||
if (paused || M_Active())
|
if (paused || M_Active())
|
||||||
{
|
{
|
||||||
|
@ -112,7 +112,6 @@ void GameInterface::GetInput(InputPacket* packet, ControlInfo* const hidInput)
|
||||||
if (plr.dead) localInput.actions &= SB_OPEN;
|
if (plr.dead) localInput.actions &= SB_OPEN;
|
||||||
}
|
}
|
||||||
|
|
||||||
double const scaleAdjust = InputScale();
|
|
||||||
InputPacket input{};
|
InputPacket input{};
|
||||||
|
|
||||||
if (!plr.dead)
|
if (!plr.dead)
|
||||||
|
|
|
@ -527,7 +527,7 @@ struct GameInterface : public ::GameInterface
|
||||||
FString GetCoordString() override;
|
FString GetCoordString() override;
|
||||||
//void ExitFromMenu() override;
|
//void ExitFromMenu() override;
|
||||||
//void DrawPlayerSprite(const DVector2& origin, bool onteam) override;
|
//void DrawPlayerSprite(const DVector2& origin, bool onteam) override;
|
||||||
void GetInput(InputPacket* packet, ControlInfo* const hidInput) override;
|
void GetInput(ControlInfo* const hidInput, double const scaleAdjust, InputPacket* packet) override;
|
||||||
void UpdateSounds() override;
|
void UpdateSounds() override;
|
||||||
void Startup() override;
|
void Startup() override;
|
||||||
void DrawBackground() override;
|
void DrawBackground() override;
|
||||||
|
|
Loading…
Reference in a new issue