changed interval setting to be correct
This commit is contained in:
@ -171,8 +171,8 @@ function message(type, data) { //incoming message
|
|||||||
else if (type === "server_data") {
|
else if (type === "server_data") {
|
||||||
if ("fps" in data) {
|
if ("fps" in data) {
|
||||||
server_fps = data.fps;
|
server_fps = data.fps;
|
||||||
clearInterval(send_position_to_server);
|
clearInterval(update_server_tick);
|
||||||
setInterval(send_position_to_server, server_fps);
|
update_server_tick = setInterval(send_position_to_server, server_fps);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user