mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-12 13:36:51 +03:00
Code clarity
This commit is contained in:
parent
2e32395cf2
commit
63456beeb0
1 changed files with 15 additions and 14 deletions
|
@ -3465,9 +3465,11 @@ void Vehicle::SetupPath(cVehicleSpline *pPath, SimpleEntity *se)
|
|||
Vector vDelta = vLastOrigin - ent->origin;
|
||||
float vTmp[4];
|
||||
|
||||
if (vDelta.length() == 0.0f && i > 1) {
|
||||
if (vDelta.length() == 0 && i > 1) {
|
||||
Com_Printf("^~^~^Warning: Vehicle Driving with a Path that contains 2 equal points\n");
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
|
||||
fCurLength += vDelta.length();
|
||||
|
||||
vTmp[0] = fCurLength;
|
||||
|
@ -3480,7 +3482,6 @@ void Vehicle::SetupPath(cVehicleSpline *pPath, SimpleEntity *se)
|
|||
}
|
||||
|
||||
vLastOrigin = ent->origin;
|
||||
}
|
||||
|
||||
if (ent == se && i > 1) {
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue