Fixes messages and removes movement console logs (#328)
This commit is contained in:
parent
70f5128771
commit
c41906d3c7
2 changed files with 8 additions and 17 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue