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;
|
||||
}
|
||||
} 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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user