From 58545382fc1c195a80fdc5fcf228526a84d5bfcb Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Fri, 27 Sep 2013 14:03:07 +0200 Subject: [PATCH] Fixed reading ints. --- spine-csharp/src/SkeletonJson.cs | 2 +- spine-xna/example/data/spineboy.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spine-csharp/src/SkeletonJson.cs b/spine-csharp/src/SkeletonJson.cs index 0aae8de0e..c4fff9d2e 100644 --- a/spine-csharp/src/SkeletonJson.cs +++ b/spine-csharp/src/SkeletonJson.cs @@ -228,7 +228,7 @@ namespace Spine { private int GetInt (Dictionary map, String name, int defaultValue) { if (!map.ContainsKey(name)) return defaultValue; - return (int)map[name]; + return (int)(float)map[name]; } private bool GetBoolean (Dictionary map, String name, bool defaultValue) { diff --git a/spine-xna/example/data/spineboy.json b/spine-xna/example/data/spineboy.json index 113e72c33..b5a9cf9b7 100644 --- a/spine-xna/example/data/spineboy.json +++ b/spine-xna/example/data/spineboy.json @@ -119,7 +119,7 @@ } }, "events": { - "behind": {}, + "behind": { "int": 4 }, "headAttach": {}, "headPop": {} },