Fixes messages and removes movement console logs (#328)

This commit is contained in:
Kamron Batman 2020-11-28 18:36:08 -08:00 committed by GitHub
parent 70f5128771
commit c41906d3c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 17 deletions

View file

@ -90,15 +90,6 @@ namespace Server.Network
int seq = reader.ReadByte();
var key = reader.ReadUInt32();
if (key != 0)
{
state.WriteConsole("OldMove w/ Key {0}", key);
}
else
{
state.WriteConsole("Old Movement!");
}
if (state.Sequence == 0 && seq != 0 || !from.Move(dir))
{
state.SendMovementRej(seq, from);

View file

@ -57,8 +57,8 @@ namespace Server.Network
Serial serial, int graphic, MessageType type, int hue, int font, int number, string name = "", string args = ""
)
{
name = name?.Trim() ?? "";
args = args?.Trim() ?? "";
name ??= "";
args ??= "";
if (hue == 0)
{
@ -111,9 +111,9 @@ namespace Server.Network
AffixType affixType, string affix = "", string args = ""
)
{
name = name?.Trim() ?? "";
affix = affix?.Trim() ?? "";
args = args?.Trim() ?? "";
name ??= "";
affix ??= "";
args ??= "";
if (hue == 0)
{
@ -183,9 +183,9 @@ namespace Server.Network
string text
)
{
name = name?.Trim() ?? "";
text = text?.Trim() ?? "";
lang = lang?.Trim() ?? "ENU";
name ??= "";
text ??= "";
lang ??= "ENU";
if (hue == 0)
{