Mercurial > molko
diff src/map.h @ 46:b815621df3e3
core: remove all fixed width integers, closes #2460
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 15 Jan 2020 22:31:17 +0100 |
parents | 22a09a5ee476 |
children | 402aa7dcffe1 |
line wrap: on
line diff
--- a/src/map.h Wed Jan 15 22:31:17 2020 +0100 +++ b/src/map.h Wed Jan 15 22:31:17 2020 +0100 @@ -25,7 +25,6 @@ */ #include <stdbool.h> -#include <stdint.h> #include "sprite.h" @@ -40,7 +39,7 @@ * \brief Map layer. */ struct map_layer { - uint16_t *tiles; /*!< Array of tiles, depending on the map size. */ + unsigned short *tiles; /*!< (RO) Array of tiles, depending on the map size. */ }; /** @@ -51,10 +50,10 @@ struct texture *tileset; /*!< (RW) Tileset to use */ struct texture *picture; /*!< (RO) Map drawn into a picture */ struct sprite sprite; /*!< (RO) Sprite to render */ - uint16_t width; /*!< (RO) Map width in cells */ - uint16_t height; /*!< (RO) Map height in cells */ - uint8_t tilewidth; /*!< (RO) Pixels per cell (width) */ - uint8_t tileheight; /*!< (RO) Pixels per cell (height) */ + unsigned int width; /*!< (RO) Map width in cells */ + unsigned int height; /*!< (RO) Map height in cells */ + unsigned short tilewidth; /*!< (RO) Pixels per cell (width) */ + unsigned short tileheight; /*!< (RO) Pixels per cell (height) */ struct map_layer layers[2]; /*!< (RO) Layers (background, foreground) */ };