Use ints instead of float.

This commit is contained in:
Steve 2018-02-24 16:01:36 +00:00
parent db9cddb7e8
commit 1c149695e2
2 changed files with 4 additions and 5 deletions

View File

@ -37,7 +37,7 @@ void initItems(void)
cherrySprite[2] = getSprite("CherryBunch");
}
void addRandomWeapon(float x, float y)
void addRandomWeapon(int x, int y)
{
Item *i;
int type;
@ -75,7 +75,7 @@ static int getRandomPlayerWeaponAt(int x, int y)
return type;
}
void dropRandomCherry(float x, float y)
void dropRandomCherry(int x, int y)
{
Item *i;
int r;
@ -110,7 +110,7 @@ void dropRandomCherry(float x, float y)
throwItem(i);
}
void dropBattery(float x, float y)
static void dropBattery(int x, int y)
{
Item *i;
int r;
@ -152,7 +152,7 @@ void dropBattery(float x, float y)
throwItem(i);
}
void addRandomItems(float x, float y)
void addRandomItems(int x, int y)
{
if (rand() % 100 < 25)
{

View File

@ -23,7 +23,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
extern int rrnd(int low, int high);
extern int getRandomPlayerWeapon(int excludeGrenades);
extern Sprite *getSprite(char *name);
extern void addRandomItems(float x, float y);
extern Item *initBattery(void);
extern Item *initCherry(void);
extern Item * initWeaponPickup(void);