fix(tracer): Fixed wrong velocity taken in advanced flag
Einige Prüfungen sind fehlgeschlagen
SteamWarCI Build failed
Einige Prüfungen sind fehlgeschlagen
SteamWarCI Build failed
Dieser Commit ist enthalten in:
Ursprung
30ddf671ae
Commit
38bb687c5b
@ -123,6 +123,7 @@ public abstract class ViewFlag {
|
|||||||
if (prev.isEmpty()) continue;
|
if (prev.isEmpty()) continue;
|
||||||
|
|
||||||
TNTPoint previous = prev.get();
|
TNTPoint previous = prev.get();
|
||||||
|
Vector previousVelocity = previous.getVelocity();
|
||||||
|
|
||||||
Location delta = representative.getLocation().clone().subtract(previous.getLocation());
|
Location delta = representative.getLocation().clone().subtract(previous.getLocation());
|
||||||
|
|
||||||
@ -133,7 +134,7 @@ public abstract class ViewFlag {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Location secoundLocation;
|
Location secoundLocation;
|
||||||
if (delta.getX() >= delta.getZ()) {
|
if (previousVelocity.getX() >= previousVelocity.getZ()) {
|
||||||
secoundLocation = previous.getLocation().clone().add(delta.getX(), delta.getY(), 0);
|
secoundLocation = previous.getLocation().clone().add(delta.getX(), delta.getY(), 0);
|
||||||
} else {
|
} else {
|
||||||
secoundLocation = previous.getLocation().clone().add(0, delta.getY(), delta.getZ());
|
secoundLocation = previous.getLocation().clone().add(0, delta.getY(), delta.getZ());
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren