]> git.deb.at Git - rhonda/impostor.git/commit
Improve error when client version is unsupported (#432) v1.5.0
authorminiduikboot <mini@duikbo.at>
Tue, 13 Jul 2021 20:48:24 +0000 (22:48 +0200)
committerGitHub <noreply@github.com>
Tue, 13 Jul 2021 20:48:24 +0000 (22:48 +0200)
commit66b4d860a949de8d2f6510685975011e70631d6b
treef37dacfd995dd06decaf998553c2f61052635661
parentdca26cff59ab2ae440d76ee30b3e36e1eeb71b24
Improve error when client version is unsupported (#432)

* Improve error when client version is unsupported

In the default message that was used previously the user is asked to
upgrade his game. This is not always correct, as sometimes the Impostor
server is too old and should be updated instead. Therefore custom
disconnect messages are used that blames either the user or the server
operator, which is hopefully more accurate.

I've chosen not to include the game version that is supported by the
server in this message because the network version rarely matches the
advertised version in the main menu.

* Rewrite versionCompare switch case

Co-authored-by: js6pak <kubastaron@hotmail.com>
Co-authored-by: js6pak <kubastaron@hotmail.com>
src/Impostor.Server/Config/DisconnectMessages.cs
src/Impostor.Server/Net/Manager/ClientManager.cs