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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user