From 77816bf3d3f83a401de363c96e041e272bf70c4a Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Mon, 7 Sep 2020 21:03:30 +1000 Subject: [PATCH] - SW: Promote adjustment of helpers to double since some values will be coming in with higher precision. --- source/sw/src/player.cpp | 8 ++++---- source/sw/src/player.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/source/sw/src/player.cpp b/source/sw/src/player.cpp index 5c861bc85..af64c5b97 100644 --- a/source/sw/src/player.cpp +++ b/source/sw/src/player.cpp @@ -7791,7 +7791,7 @@ void CheckFootPrints(PLAYERp pp) // //--------------------------------------------------------------------------- -void playerAddAngle(PLAYERp pp, int ang) +void playerAddAngle(PLAYERp pp, double ang) { if (!cl_syncinput) { @@ -7803,7 +7803,7 @@ void playerAddAngle(PLAYERp pp, int ang) } } -void playerSetAngle(PLAYERp pp, int ang) +void playerSetAngle(PLAYERp pp, double ang) { if (!cl_syncinput) { @@ -7815,7 +7815,7 @@ void playerSetAngle(PLAYERp pp, int ang) } } -void playerAddHoriz(PLAYERp pp, int horiz) +void playerAddHoriz(PLAYERp pp, double horiz) { if (!cl_syncinput) { @@ -7827,7 +7827,7 @@ void playerAddHoriz(PLAYERp pp, int horiz) } } -void playerSetHoriz(PLAYERp pp, int horiz) +void playerSetHoriz(PLAYERp pp, double horiz) { if (!cl_syncinput) { diff --git a/source/sw/src/player.h b/source/sw/src/player.h index 608dc40ff..1db99ae8e 100644 --- a/source/sw/src/player.h +++ b/source/sw/src/player.h @@ -144,10 +144,10 @@ void PlaySOsound(short sectnum,short sound_num); void DoSpawnTeleporterEffectPlace(SPRITEp sp); void FindMainSector(SECTOR_OBJECTp sop); -void playerAddAngle(PLAYERp pp, int ang); -void playerSetAngle(PLAYERp pp, int ang); -void playerAddHoriz(PLAYERp pp, int horiz); -void playerSetHoriz(PLAYERp pp, int horiz); +void playerAddAngle(PLAYERp pp, double ang); +void playerSetAngle(PLAYERp pp, double ang); +void playerAddHoriz(PLAYERp pp, double horiz); +void playerSetHoriz(PLAYERp pp, double horiz); END_SW_NS