From 626c005b5217b70089fdd6956f2736f600015026 Mon Sep 17 00:00:00 2001 From: Sarah Bradley Date: Mon, 25 Dec 2023 02:02:09 -0800 Subject: Fixed cursor sprite networking --- Mouse.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mouse.cs b/Mouse.cs index 544344e..c0bceda 100644 --- a/Mouse.cs +++ b/Mouse.cs @@ -20,9 +20,9 @@ abstract class Mouse : Drawable DrawOrder = 100; allMice.Add(this); - string CursorPath = "mddisc/cursor.png"; + string CursorPath = OnekoOnline.Config.GetValue("CursorSpritePath", "misc/cursor.png"); - if (File.Exists(CursorPath) && new FileInfo(CursorPath).Length < 12*19*3) { + if (File.Exists(CursorPath) && new FileInfo(CursorPath).Length < 2500) { Cursor = Bitmap.FromPNGMemory(File.ReadAllBytes(CursorPath)); } else { Console.WriteLine("The cursor PNG was either mising or too big. Using the default."); -- cgit