This commit is contained in:
2022-11-10 17:09:37 +02:00
parent 411c341278
commit 36c09efac0
12 changed files with 24 additions and 23 deletions

View File

@@ -166,7 +166,7 @@ namespace Game
else if (playerId == NetworkManager.LocalPlayerClientId)
{
Console.Print("local player: " + playerId.ToString());
string demoPath = System.IO.Path.Combine(AssetManager.DemoPath, $"{DateTimeOffset.Now.ToUnixTimeSeconds()}.gdem");
string demoPath = System.IO.Path.Combine(AssetManager.DemoPath, $"{DateTimeOffset.Now.UtcTicks}.gdem");
input = new PlayerInputLocal(demoPath); // TODO: support recording
PlayerId = playerId;
}
@@ -400,7 +400,7 @@ namespace Game
if (distance < 0.00000001f)
{
hits = Array.Empty<RayCastHit>();
hits = new RayCastHit[0];//Array.Empty<RayCastHit>();
return false;
}