@@ -21,7 +21,6 @@ using Framework.IO;
|
||||
using Game.Entities;
|
||||
using Game.Maps;
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
namespace Game.Chat.Commands
|
||||
{
|
||||
@@ -285,7 +284,7 @@ namespace Game.Chat.Commands
|
||||
|
||||
if (arg_string == "posx")
|
||||
{
|
||||
if (!float.TryParse(arg_3, NumberStyles.Float, CultureInfo.InvariantCulture, out float arg3))
|
||||
if (!float.TryParse(arg_3, out float arg3))
|
||||
return false;
|
||||
|
||||
stmt = DB.World.GetPreparedStatement(WorldStatements.UPD_WAYPOINT_SCRIPT_X);
|
||||
@@ -298,7 +297,7 @@ namespace Game.Chat.Commands
|
||||
}
|
||||
else if (arg_string == "posy")
|
||||
{
|
||||
if (!float.TryParse(arg_3, NumberStyles.Float, CultureInfo.InvariantCulture, out float arg3))
|
||||
if (!float.TryParse(arg_3, out float arg3))
|
||||
return false;
|
||||
|
||||
stmt = DB.World.GetPreparedStatement(WorldStatements.UPD_WAYPOINT_SCRIPT_Y);
|
||||
@@ -311,7 +310,7 @@ namespace Game.Chat.Commands
|
||||
}
|
||||
else if (arg_string == "posz")
|
||||
{
|
||||
if (!float.TryParse(arg_3, NumberStyles.Float, CultureInfo.InvariantCulture, out float arg3))
|
||||
if (!float.TryParse(arg_3, out float arg3))
|
||||
return false;
|
||||
|
||||
stmt = DB.World.GetPreparedStatement(WorldStatements.UPD_WAYPOINT_SCRIPT_Z);
|
||||
@@ -324,7 +323,7 @@ namespace Game.Chat.Commands
|
||||
}
|
||||
else if (arg_string == "orientation")
|
||||
{
|
||||
if (!float.TryParse(arg_3, NumberStyles.Float, CultureInfo.InvariantCulture, out float arg3))
|
||||
if (!float.TryParse(arg_3, out float arg3))
|
||||
return false;
|
||||
|
||||
stmt = DB.World.GetPreparedStatement(WorldStatements.UPD_WAYPOINT_SCRIPT_O);
|
||||
|
||||
Reference in New Issue
Block a user