ServerObject Inheritance, getter and setter for Position and Roatation, Fix connect error.

This commit is contained in:
Sardelka
2022-07-03 10:46:24 +08:00
parent f47f0570f9
commit dc5cf2b965
22 changed files with 361 additions and 279 deletions

View File

@ -352,7 +352,7 @@ namespace RageCoop.Client
{
// Outgoing sync
if (p.IsMine)
if (p.IsLocal)
{
if (p.MainProjectile.AttachedEntity==null)
{
@ -530,13 +530,6 @@ namespace RageCoop.Client
}
lock (PropsLock)
{
foreach (var p in ServerProps.Values)
{
p.Update();
}
}
#if BENCHMARK
Debug.TimeStamps[TimeStamp.VehicleTotal]=PerfCounter.ElapsedTicks;
#endif