Revert "Fix parsing floats (#7)"

This reverts commit 5fc9082a02.
This commit is contained in:
hondacrx
2017-12-14 21:53:22 -05:00
parent 5fc9082a02
commit 6c6cdac426
5 changed files with 20 additions and 25 deletions
+4 -5
View File
@@ -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);