Core/Cells: align Cell.data.Part fields by 8 bits and enlarge Cell structure to 8 bytes

8-bits align removes unneded shift operations

(cherry picked from commit 6ff8ce5bffb69d7c6d961bda26d579fa44e37801)
Signed-off-by: luis <[email protected]>
This commit is contained in:
Gosha
2026-05-26 21:16:44 -03:00
committed by luis
parent d568ffd435
commit ae29a0cc55
+7 -7
View File
@@ -93,14 +93,14 @@ struct Cell
{
struct
{
unsigned grid_x : 6;
unsigned grid_y : 6;
unsigned cell_x : 6;
unsigned cell_y : 6;
unsigned nocreate : 1;
unsigned reserved : 7;
unsigned grid_x : 8;
unsigned grid_y : 8;
unsigned cell_x : 8;
unsigned cell_y : 8;
unsigned nocreate : 8;
unsigned reserved : 24;
} Part;
uint32 All;
uint64 All;
} data;
template<class T, class CONTAINER> void Visit(CellCoord const&, TypeContainerVisitor<T, CONTAINER>& visitor, Map&, WorldObject const& obj, float radius) const;