mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 03:55:18 -04:00
scale movement steps for bots with update interval time, so bots appear to always move at same speed.
This commit is contained in:
parent
64f54d0e44
commit
e5d8e0e95e
@ -155,7 +155,9 @@ namespace MCGalaxy {
|
||||
|
||||
void UpdatePosition() {
|
||||
if (movement) {
|
||||
for (int i = 0; i < movementSpeed; i++)
|
||||
double scale = Math.Ceiling(Server.updateTimer.Interval / 25.0);
|
||||
int steps = movementSpeed * (int)scale;
|
||||
for (int i = 0; i < steps; i++)
|
||||
DoMove();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user