summaryrefslogtreecommitdiff
path: root/Mouse.cs
diff options
context:
space:
mode:
authorSarah Bradley <git@sarahduck.ca>2023-12-25 02:02:09 -0800
committerSarah Bradley <git@sarahduck.ca>2023-12-25 02:02:09 -0800
commit626c005b5217b70089fdd6956f2736f600015026 (patch)
tree8452f877da31d9c3fb2f0b2728f3b3c8ab9bc14a /Mouse.cs
parent828672047ffd306f78b93f11c3d9a8dfafa3d653 (diff)
Fixed cursor sprite networking
Diffstat (limited to 'Mouse.cs')
-rw-r--r--Mouse.cs4
1 files 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.");