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:
SlyVTT 2023-07-08 23:02:57 +02:00
parent 8258bc7bb8
commit 9666d21ec1

View file

@ -16,8 +16,8 @@ typedef enum {
/* Struct that define player parameters */
typedef struct {
unsigned short int x, y; /* The position of the player */
unsigned char px, py; /* The position of the player on screen */
unsigned int x, y; /* The position of the player */
unsigned int px, py; /* The position of the player on screen */
unsigned short int life; /* How many lives the player still has between 0
* and 100. */
} Player;