]> git.deb.at Git - rhonda/impostor.git/commit
Switch PlayerName writes to Outfit
authorminiduikboot <mini@duikbo.at>
Sun, 18 Aug 2024 09:16:44 +0000 (11:16 +0200)
committerminiduikboot <mini@duikbo.at>
Tue, 20 Aug 2024 19:41:38 +0000 (21:41 +0200)
commit9e1abe07ef79c22876733644610798417f8f7e57
tree19a48c84ac39cf9c2293802e9ba4669cdf06d0db
parentccd36b6571b96d05b37d80b8a993b6e5e32915bc
Switch PlayerName writes to Outfit

In 2024.6.18 Innersloth changed the storage location of the PlayerName
from PlayerInfo to PlayerOutfit. If we don't set the PlayerName, we'll
send an incomplete PlayerInfo to new players, so new players are unable
to stay connected as they will not receive complete PlayerInfo objects
before a timeout in the client activates.

Because we publish PlayerName in the API, we can't completely remove
the PlayerName field from PlayerInfo. We also use it internally in a few
places, so I don't this is worth removing.
src/Impostor.Server/Net/Inner/Objects/InnerPlayerControl.Api.cs
src/Impostor.Server/Net/Inner/Objects/InnerPlayerControl.cs
src/Impostor.Server/Net/Inner/Objects/InnerPlayerInfo.cs