]> git.deb.at Git - rhonda/impostor.git/commitdiff
updated the api call to use the setnamerpc serialise
authordanbudworthmead <danbudworthmead@gmail.com>
Sat, 28 Sep 2024 15:37:43 +0000 (16:37 +0100)
committerminiduikboot <mini@duikbo.at>
Sat, 5 Oct 2024 10:28:16 +0000 (12:28 +0200)
the client now expects a byte which is the netid otherwise the setname call wont work

src/Impostor.Server/Net/Inner/Objects/InnerPlayerControl.Api.cs

index 34163f6e5c66860e29eef038afa82186ef2f4fe5..2d8a8f153649703ed7ab7b1d81bac38cad0ffb5d 100644 (file)
@@ -23,7 +23,7 @@ namespace Impostor.Server.Net.Inner.Objects
             PlayerInfo.CurrentOutfit.PlayerName = name;
 
             using var writer = Game.StartRpc(NetId, RpcCalls.SetName);
-            writer.Write(name);
+            Rpc06SetName.Serialize(writer, PlayerInfo.NetId, name);
             await Game.FinishRpcAsync(writer);
         }