mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-29 13:43:43 +00:00
fix
This commit is contained in:
parent
0a23afebb7
commit
cb7f18f268
2 changed files with 3 additions and 3 deletions
|
@ -103,8 +103,8 @@ void CFerry::Init(void* pInstancePtr)
|
||||||
float t = 0.0f;
|
float t = 0.0f;
|
||||||
for (i = 0; i < pPath->NumTrackNodes; i++) {
|
for (i = 0; i < pPath->NumTrackNodes; i++) {
|
||||||
pPath->aTrackNodes[i].t = t;
|
pPath->aTrackNodes[i].t = t;
|
||||||
t += Sqrt(SQR(pPath->aTrackNodes[(i + 1) % pPath->NumTrackNodes].x - pPath->aTrackNodes[i].x)) +
|
t += Sqrt(SQR(pPath->aTrackNodes[(i + 1) % pPath->NumTrackNodes].x - pPath->aTrackNodes[i].x) +
|
||||||
(SQR(pPath->aTrackNodes[(i + 1) % pPath->NumTrackNodes].y - pPath->aTrackNodes[i].y));
|
(SQR(pPath->aTrackNodes[(i + 1) % pPath->NumTrackNodes].y - pPath->aTrackNodes[i].y)));
|
||||||
}
|
}
|
||||||
pPath->TotalLengthOfTrack = t;
|
pPath->TotalLengthOfTrack = t;
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ public:
|
||||||
class CFerry : public CVehicle
|
class CFerry : public CVehicle
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
uint16 m_nFerryId;
|
int16 m_nFerryId;
|
||||||
uint16 m_isFarAway;
|
uint16 m_isFarAway;
|
||||||
uint16 m_nCurTrackNode;
|
uint16 m_nCurTrackNode;
|
||||||
float m_fSpeed;
|
float m_fSpeed;
|
||||||
|
|
Loading…
Reference in a new issue