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

8-bits align removes unneded shift operations
This commit is contained in:
Gosha authored and Ovahlord committed 2023-12-14 00:47:12 +01:00
1 parent 9a4a902636
commit 7d2e4e1993
1 file changed
+7 -7
+7 -7
View File
@@ -96,14 +96,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;