diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-26 19:58:46 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-26 19:58:46 +0200 |
| commit | cbe7ca6fcadc28c331a4df0aa6c6d2dea8db8c4e (patch) | |
| tree | 7502cdb2759829cc0f1cd176645e4186ab85f3aa /src/player/inc/player.h | |
| parent | 0b94264a7e5e7c8c1a56f8bba3cbe7a5a63cd38b (diff) | |
| download | jancity-cbe7ca6fcadc28c331a4df0aa6c6d2dea8db8c4e.tar.gz | |
player: limit data sizes for resources and population
- All platforms should allow for the same resources.
- Population is not expected to exceed UCHAR_MAX on any platform.
Diffstat (limited to 'src/player/inc/player.h')
| -rw-r--r-- | src/player/inc/player.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player/inc/player.h b/src/player/inc/player.h index 25f4d81..153740c 100644 --- a/src/player/inc/player.h +++ b/src/player/inc/player.h @@ -36,8 +36,8 @@ struct player bool alive; struct unit units[PLAYER_MAX_UNITS]; struct building buildings[PLAYER_MAX_BUILDINGS]; - unsigned long resources[MAX_RESOURCE_TYPES]; - size_t pop, bpop; + uint32_t resources[MAX_RESOURCE_TYPES]; + unsigned char pop, bpop; struct { |
