Proper way to finish current route point.

This commit is contained in:
MobiusDevelopment
2021-11-14 01:59:47 +00:00
parent b0e918e4fe
commit 2d581185d6
23 changed files with 23 additions and 0 deletions

View File

@@ -179,6 +179,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -179,6 +179,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -179,6 +179,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -179,6 +179,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -179,6 +179,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -179,6 +179,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -179,6 +179,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -179,6 +179,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -179,6 +179,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -179,6 +179,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -179,6 +179,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -182,6 +182,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -182,6 +182,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -179,6 +179,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -179,6 +179,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -179,6 +179,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -179,6 +179,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -179,6 +179,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -179,6 +179,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -179,6 +179,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -179,6 +179,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -179,6 +179,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else

View File

@@ -179,6 +179,7 @@ public abstract class Vehicle extends Creature
{ {
if (_runState < _currentPath.length) if (_runState < _currentPath.length)
{ {
_runState = Math.max(0, _runState - 1);
moveToNextRoutePoint(); moveToNextRoutePoint();
} }
else else