mirror of
https://git.planet-casio.com/Slyvtt/Collab_RPG.git
synced 2024-12-29 13:03:43 +01:00
corrected Player struct to avoid char overflow on CG (resolution is 396px wide > 255 (so out of bound for char)
This commit is contained in:
parent
8258bc7bb8
commit
9666d21ec1
1 changed files with 2 additions and 2 deletions
|
@ -16,8 +16,8 @@ typedef enum {
|
||||||
|
|
||||||
/* Struct that define player parameters */
|
/* Struct that define player parameters */
|
||||||
typedef struct {
|
typedef struct {
|
||||||
unsigned short int x, y; /* The position of the player */
|
unsigned int x, y; /* The position of the player */
|
||||||
unsigned char px, py; /* The position of the player on screen */
|
unsigned int px, py; /* The position of the player on screen */
|
||||||
unsigned short int life; /* How many lives the player still has between 0
|
unsigned short int life; /* How many lives the player still has between 0
|
||||||
* and 100. */
|
* and 100. */
|
||||||
} Player;
|
} Player;
|
||||||
|
|
Loading…
Reference in a new issue