| 430 | } |
| 431 | |
| 432 | float NetworkObject::CalculateError(NetworkMessageContext& ctx) |
| 433 | { |
| 434 | switch (ctx.GetClass()) |
| 435 | { |
| 436 | case NMCUpdatePosition: |
| 437 | return ERR_COEF_TIME_POSITION * (Glob.time - ctx.GetMsgTime()); |
| 438 | default: |
| 439 | return ERR_COEF_TIME_GENERIC * (Glob.time - ctx.GetMsgTime()); |
| 440 | } |
| 441 | } |
| 442 | |
| 443 | float NetworkObject::CalculateErrorCoef(Vector3Par position, Vector3Par cameraPosition) |
| 444 | { |
no test coverage detected