update offset for the freeblock position

This commit is contained in:
Beu 2023-09-26 22:00:05 +02:00
parent f7de2290cb
commit 334ffbfa48
1 changed files with 3 additions and 2 deletions

View File

@ -52,7 +52,8 @@ void RefreshBlocks() {
pos.z = blocks[i].CoordZ * 32 + 16;
}
} 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
pos.x += 16;
pos.y += 4;
@ -192,4 +193,4 @@ bool FocusCam(const string &in objectname) {
return true;
}
return false;
}
}