Improved clamping for force movement, fixes client crashes in Nature Spirit
This commit is contained in:
@@ -146,8 +146,8 @@ sealed class PlayerFlags530 (p: Int, o: Int, f: EntityFlag) : EFlagProvider (530
|
||||
buffer.p1add (context.dest.getSceneX(l))
|
||||
buffer.p1 (context.dest.getSceneY(l))
|
||||
//arrival times (in client cycles)
|
||||
buffer.ip2 (max(1, context.startArrive)) //# of client cycles to start location
|
||||
buffer.ip2 (max(2, context.startArrive + context.destArrive)) //# of client cycles to end location
|
||||
buffer.ip2 (context.startArrive) //# of client cycles to start location
|
||||
buffer.ip2 (max(context.startArrive + 1, context.startArrive + context.destArrive)) //# of client cycles to end location
|
||||
buffer.p1neg (context.direction.toInteger()) //direction of movement
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user