mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
- SW: Fix turret sound with unsynchronised input.
This commit is contained in:
parent
cda79496ce
commit
c00217163b
1 changed files with 8 additions and 8 deletions
|
@ -1704,14 +1704,6 @@ DoPlayerTurnTurret(PLAYERp pp, fixed_t q16avel)
|
|||
fixed_t new_ang, diff;
|
||||
SECTOR_OBJECTp sop = pp->sop;
|
||||
|
||||
if (!Prediction)
|
||||
{
|
||||
if (q16avel && !pp->lastinput.q16avel)
|
||||
PlaySOsound(pp->sop->mid_sector, SO_DRIVE_SOUND);
|
||||
else if (!q16avel && pp->lastinput.q16avel)
|
||||
PlaySOsound(pp->sop->mid_sector, SO_IDLE_SOUND);
|
||||
}
|
||||
|
||||
if (sop->drive_angspeed)
|
||||
{
|
||||
fixed_t drive_oq16avel = pp->drive_q16avel;
|
||||
|
@ -3169,6 +3161,14 @@ DoPlayerMoveTank(PLAYERp pp)
|
|||
void
|
||||
DoPlayerMoveTurret(PLAYERp pp)
|
||||
{
|
||||
if (!Prediction)
|
||||
{
|
||||
if (pp->input.q16avel && !pp->lastinput.q16avel)
|
||||
PlaySOsound(pp->sop->mid_sector, SO_DRIVE_SOUND);
|
||||
else if (!pp->input.q16avel && pp->lastinput.q16avel)
|
||||
PlaySOsound(pp->sop->mid_sector, SO_IDLE_SOUND);
|
||||
}
|
||||
|
||||
if (!cl_syncinput)
|
||||
{
|
||||
SET(pp->Flags2, PF2_INPUT_CAN_TURN_TURRET);
|
||||
|
|
Loading…
Reference in a new issue