From a29d7bd3cdda694ff1dd784c957b220d026a2891 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 18 Aug 2020 21:39:20 +1000 Subject: [PATCH] - SW: Change `pSpawnSprite()` x/y coordinates from int to double to preserve precision for some calls. --- source/sw/src/panel.cpp | 2 +- source/sw/src/panel.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/sw/src/panel.cpp b/source/sw/src/panel.cpp index e31b86939..26e6b5135 100644 --- a/source/sw/src/panel.cpp +++ b/source/sw/src/panel.cpp @@ -6704,7 +6704,7 @@ InsertPanelSprite(PLAYERp pp, PANEL_SPRITEp psp) PANEL_SPRITEp -pSpawnSprite(PLAYERp pp, PANEL_STATEp state, uint8_t priority, int x, int y) +pSpawnSprite(PLAYERp pp, PANEL_STATEp state, uint8_t priority, double x, double y) { unsigned i; PANEL_SPRITEp psp; diff --git a/source/sw/src/panel.h b/source/sw/src/panel.h index db2a69f20..0fcb98a35 100644 --- a/source/sw/src/panel.h +++ b/source/sw/src/panel.h @@ -183,7 +183,7 @@ enum BorderTypes #define SHOTGUN_AUTO_NUM 0 #define SHOTGUN_AUTO 2078 -PANEL_SPRITEp pSpawnSprite(PLAYERp pp, PANEL_STATEp state, uint8_t priority, int x, int y); +PANEL_SPRITEp pSpawnSprite(PLAYERp pp, PANEL_STATEp state, uint8_t priority, double x, double y); void pSetSuicide(PANEL_SPRITEp psp); SWBOOL pKillScreenSpiteIDs(PLAYERp pp, short id); void PreUpdatePanel(double smoothratio);