- SW: Change pSpawnSprite() x/y coordinates from int to double to preserve precision for some calls.

This commit is contained in:
Mitchell Richters 2020-08-18 21:39:20 +10:00
parent 7af5d26feb
commit a29d7bd3cd
2 changed files with 2 additions and 2 deletions

View file

@ -6704,7 +6704,7 @@ InsertPanelSprite(PLAYERp pp, PANEL_SPRITEp psp)
PANEL_SPRITEp 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; unsigned i;
PANEL_SPRITEp psp; PANEL_SPRITEp psp;

View file

@ -183,7 +183,7 @@ enum BorderTypes
#define SHOTGUN_AUTO_NUM 0 #define SHOTGUN_AUTO_NUM 0
#define SHOTGUN_AUTO 2078 #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); void pSetSuicide(PANEL_SPRITEp psp);
SWBOOL pKillScreenSpiteIDs(PLAYERp pp, short id); SWBOOL pKillScreenSpiteIDs(PLAYERp pp, short id);
void PreUpdatePanel(double smoothratio); void PreUpdatePanel(double smoothratio);