diff --git a/src/world/items.c b/src/world/items.c index 4d9e5c5..37604eb 100644 --- a/src/world/items.c +++ b/src/world/items.c @@ -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) { diff --git a/src/world/items.h b/src/world/items.h index 9503773..2771040 100644 --- a/src/world/items.h +++ b/src/world/items.h @@ -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);