scale movement steps for bots with update interval time, so bots appear to always move at same speed.

This commit is contained in:
UnknownShadow200 2016-07-31 00:19:27 +10:00
parent 64f54d0e44
commit e5d8e0e95e

View File

@ -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();
}