stall bug

This commit is contained in:
RandomityGuy 2024-07-17 13:03:22 +05:30
parent ebd3f03e13
commit 4cf4748813

View file

@ -2129,11 +2129,13 @@ class Marble extends GameObject {
// Pad null move on client // Pad null move on client
this.connection.moveManager.duplicateLastMove(); this.connection.moveManager.duplicateLastMove();
} }
if (this.connection != null) {
if (ProfilerUI.instance.fps < 30) { if (ProfilerUI.instance.fps < 30) {
this.connection.moveManager.stall = true; // Our fps fucked, stall pls this.connection.moveManager.stall = true; // Our fps fucked, stall pls
} else { } else {
this.connection.moveManager.stall = false; this.connection.moveManager.stall = false;
} }
}
if (p.netFlags & MarbleNetFlags.UpdateTrapdoor > 0) { if (p.netFlags & MarbleNetFlags.UpdateTrapdoor > 0) {
for (tId => tTime in p.trapdoorUpdates) { for (tId => tTime in p.trapdoorUpdates) {
@:privateAccess level.trapdoorPredictions.acknowledgeTrapdoorUpdate(tId, tTime); @:privateAccess level.trapdoorPredictions.acknowledgeTrapdoorUpdate(tId, tTime);