1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-10-31 00:07:39 +02:00

Merge pull request #4235 from kaja47/patch-1

reorder fields to shrink struct TerrainTile from 96 to 80 bytes
This commit is contained in:
Ivan Savenko
2024-07-08 17:59:29 +03:00
committed by GitHub

View File

@@ -97,10 +97,10 @@ struct DLL_LINKAGE TerrainTile
bool hasFavorableWinds() const;
const TerrainType * terType;
ui8 terView;
const RiverType * riverType;
ui8 riverDir;
const RoadType * roadType;
ui8 terView;
ui8 riverDir;
ui8 roadDir;
/// first two bits - how to rotate terrain graphic (next two - river graphic, next two - road);
/// 7th bit - whether tile is coastal (allows disembarking if land or block movement if water); 8th bit - Favorable Winds effect