From 3072b869f12a587ed56553ff60a2c9292d8a8192 Mon Sep 17 00:00:00 2001 From: Shank Date: Sat, 28 May 2011 22:20:09 -0600 Subject: [PATCH] Version can now be a decimal. Ignoring binaries and the like. --- .gitignore | 5 +++++ Terraria/ShankShock.cs | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..0cc65b96 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/bin/* +/Content/* +/Fonts/* +/Images/* +/Sounds/* \ No newline at end of file diff --git a/Terraria/ShankShock.cs b/Terraria/ShankShock.cs index 7d6e145c..bde79068 100644 --- a/Terraria/ShankShock.cs +++ b/Terraria/ShankShock.cs @@ -9,7 +9,7 @@ namespace Terraria { class ShankShock { - private static int version = 2; + private static double version = 2; private static bool shownVersion = false; public static bool enableGuide = true; @@ -52,7 +52,7 @@ namespace Terraria Console.WriteLine(changes.Length); Console.WriteLine(changes[0]); Console.WriteLine(changes[1]); - if (Convert.ToInt32(changes[0]) > version) + if (Convert.ToDouble(changes[0]) > version) { sendMessage(ply, "This server is out of date. Version " + changes[0] + " is out.", color); for (int i = 1; i <= changes.Length; i++)