Recast: fix incorrect member order in dtOffMeshConnection

hintIdx should be before userId, see r5apex_ds + F1267D.
This commit is contained in:
Amos 2024-07-26 00:28:13 +02:00
parent d669d18a86
commit af2159a523

View File

@ -339,15 +339,12 @@ struct dtOffMeshConnection
/// NOTE: this is unconfirmed, it might not be the jumpType. /// NOTE: this is unconfirmed, it might not be the jumpType.
unsigned char jumpType; unsigned char jumpType;
unsigned char unk1; unsigned char unk1;
#endif #elif DT_NAVMESH_SET_VERSION >= 7
/// The id of the off-mesh connection. (User assigned when the navigation mesh is built.)
unsigned short userId;
#if DT_NAVMESH_SET_VERSION >= 7
/// The hint index of the off-mesh connection. (Or #DT_NULL_HINT if there is no hint.) /// The hint index of the off-mesh connection. (Or #DT_NULL_HINT if there is no hint.)
unsigned short hintIdx; unsigned short hintIdx;
#endif #endif
/// The id of the off-mesh connection. (User assigned when the navigation mesh is built.)
unsigned short userId;
/// The reference position set to the start of the off-mesh connection with an offset of DT_OFFMESH_CON_REFPOS_OFFSET /// The reference position set to the start of the off-mesh connection with an offset of DT_OFFMESH_CON_REFPOS_OFFSET
float refPos[3]; // See [r5apex_ds + F114CF], [r5apex_ds + F11B42], [r5apex_ds + F12447]. float refPos[3]; // See [r5apex_ds + F114CF], [r5apex_ds + F11B42], [r5apex_ds + F12447].
/// The reference yaw angle set towards the end position of the off-mesh connection. /// The reference yaw angle set towards the end position of the off-mesh connection.