misc optimization & refactoring
This commit is contained in:
@@ -436,9 +436,6 @@ namespace Subsurface.Networking
|
||||
userID = inc.ReadInt32();
|
||||
userPassword = inc.ReadString();
|
||||
version = inc.ReadString();
|
||||
#if DEBUG
|
||||
version = GameMain.Version.ToString();
|
||||
#endif
|
||||
packageName = inc.ReadString();
|
||||
packageHash = inc.ReadString();
|
||||
name = inc.ReadString();
|
||||
@@ -450,6 +447,8 @@ namespace Subsurface.Networking
|
||||
return;
|
||||
}
|
||||
|
||||
#if !DEBUG
|
||||
|
||||
if (userPassword != password)
|
||||
{
|
||||
inc.SenderConnection.Deny("Wrong password!");
|
||||
@@ -481,6 +480,8 @@ namespace Subsurface.Networking
|
||||
return;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
//existing user re-joining
|
||||
if (userID > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user