mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-27 11:35:40 +00:00
better name
This commit is contained in:
parent
09c9e16cb1
commit
49a897c3b3
2 changed files with 5 additions and 5 deletions
|
@ -88,7 +88,7 @@ struct CPathNode
|
|||
float GetY(void) { return y/8.0f; }
|
||||
float GetZ(void) { return z/8.0f; }
|
||||
bool HasDivider(void) { return width != 0; }
|
||||
float GetDivider(void) { return width/(2*8.0f); }
|
||||
float GetDividerWidth(void) { return width/(2*8.0f); }
|
||||
CPathNode *GetPrev(void);
|
||||
CPathNode *GetNext(void);
|
||||
void SetPrev(CPathNode *node);
|
||||
|
|
|
@ -131,11 +131,11 @@ CRoadBlocks::GenerateRoadBlocks(void)
|
|||
forward.Normalise();
|
||||
if (ThePaths.m_pathNodes[node].HasDivider()) {
|
||||
CreateRoadBlockBetween2Points(
|
||||
ThePaths.m_pathNodes[node].GetPosition() + (length * 0.5f + ThePaths.m_pathNodes[node].GetDivider()) * forward,
|
||||
ThePaths.m_pathNodes[node].GetPosition() + ThePaths.m_pathNodes[node].GetDivider() * forward);
|
||||
ThePaths.m_pathNodes[node].GetPosition() + (length * 0.5f + ThePaths.m_pathNodes[node].GetDividerWidth()) * forward,
|
||||
ThePaths.m_pathNodes[node].GetPosition() + ThePaths.m_pathNodes[node].GetDividerWidth() * forward);
|
||||
CreateRoadBlockBetween2Points(
|
||||
ThePaths.m_pathNodes[node].GetPosition() - ThePaths.m_pathNodes[node].GetDivider() * forward,
|
||||
ThePaths.m_pathNodes[node].GetPosition() - (length * 0.5f + ThePaths.m_pathNodes[node].GetDivider()) * forward);
|
||||
ThePaths.m_pathNodes[node].GetPosition() - ThePaths.m_pathNodes[node].GetDividerWidth() * forward,
|
||||
ThePaths.m_pathNodes[node].GetPosition() - (length * 0.5f + ThePaths.m_pathNodes[node].GetDividerWidth()) * forward);
|
||||
}
|
||||
else {
|
||||
CreateRoadBlockBetween2Points(
|
||||
|
|
Loading…
Reference in a new issue