Skip to content

Commit

Permalink
Fix node type
Browse files Browse the repository at this point in the history
  • Loading branch information
ziggi committed Aug 22, 2016
1 parent 5012b43 commit 4425dbf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/CNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ WORD CNode::ProcessNodeChange(CPlayerData *pPlayerData, WORD wLinkId, int iType,
void CNode::GetPosition(CVector *pVecPosition)
{
// Get the node position
*pVecPosition = CVector(static_cast<float>(m_nodePath.wPositionX / 8),
static_cast<float>(m_nodePath.wPositionY / 8),
static_cast<float>(m_nodePath.wPositionZ / 8) + 0.7f);
*pVecPosition = CVector(static_cast<float>(m_nodePath.sPositionX / 8),
static_cast<float>(m_nodePath.sPositionY / 8),
static_cast<float>(m_nodePath.sPositionZ / 8) + 0.7f);
}

WORD CNode::GetLinkId()
Expand Down
10 changes: 5 additions & 5 deletions src/CNode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ struct CPathNode
{
DWORD dwMemAddress; // 0x0000 - 0x0004
DWORD dwUnknown1; // 0x0004 - 0x0008
WORD wPositionX; // 0x0008 - 0x000A
WORD wPositionY; // 0x000A - 0x000C
WORD wPositionZ; // 0x000C - 0x000E
short sPositionX; // 0x0008 - 0x000A
short sPositionY; // 0x000A - 0x000C
short sPositionZ; // 0x000C - 0x000E
WORD wUnknown2; // 0x000E - 0x0010
WORD wLinkId; // 0x0010 - 0x0012
WORD wAreaId; // 0x0012 - 0x0014
Expand All @@ -46,8 +46,8 @@ struct CPathNode
// Navi Node
struct CNaviNode
{
WORD wPositionX; // 0x0000 - 0x0002
WORD wPositionY; // 0x0002 - 0x0004
short sPositionX; // 0x0000 - 0x0002
short sPositionY; // 0x0002 - 0x0004
WORD wAreaId; // 0x0004 - 0x0006
WORD wNodeId; // 0x0006 - 0x0008
BYTE byteDirectionX; // 0x0008 - 0x0009
Expand Down

0 comments on commit 4425dbf

Please sign in to comment.