update offset for the freeblock position
This commit is contained in:
parent
f7de2290cb
commit
334ffbfa48
@ -52,7 +52,8 @@ void RefreshBlocks() {
|
|||||||
pos.z = blocks[i].CoordZ * 32 + 16;
|
pos.z = blocks[i].CoordZ * 32 + 16;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
pos = Dev::GetOffsetVec3(blocks[i], 0x6c);
|
uint16 offset = Reflection::GetType("CGameCtnBlock").GetMember("Dir").Offset + 0x8;
|
||||||
|
pos = Dev::GetOffsetVec3(blocks[i], offset);
|
||||||
// center the coordinates in the middle of the block
|
// center the coordinates in the middle of the block
|
||||||
pos.x += 16;
|
pos.x += 16;
|
||||||
pos.y += 4;
|
pos.y += 4;
|
||||||
|
Loading…
Reference in New Issue
Block a user