mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkTransformUnreliable: UpdateServerInterpolation helper function
This commit is contained in:
parent
255789bc57
commit
6e142d8cc0
@ -120,11 +120,8 @@ void UpdateServerBroadcast()
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateServer()
|
||||
void UpdateServerInterpolation()
|
||||
{
|
||||
// broadcast to all clients each 'sendInterval'
|
||||
UpdateServerBroadcast();
|
||||
|
||||
// apply buffered snapshots IF client authority
|
||||
// -> in server authority, server moves the object
|
||||
// so no need to apply any snapshots there.
|
||||
@ -155,6 +152,15 @@ void UpdateServer()
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateServer()
|
||||
{
|
||||
// broadcast to all clients each 'sendInterval'
|
||||
UpdateServerBroadcast();
|
||||
|
||||
// apply buffered snapshots IF client authority
|
||||
UpdateServerInterpolation();
|
||||
}
|
||||
|
||||
void UpdateClientBroadcast()
|
||||
{
|
||||
// https://github.com/vis2k/Mirror/pull/2992/
|
||||
|
Loading…
Reference in New Issue
Block a user