浏览代码

[c] Backport of atlas parsing fix. See #1213.

badlogic 6 年之前
父节点
当前提交
b379841e6c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      spine-c/spine-c/src/spine/Atlas.c

+ 2 - 2
spine-c/spine-c/src/spine/Atlas.c

@@ -70,8 +70,8 @@ static void trim(Str* str) {
 		(str->begin)++;
 		(str->begin)++;
 	if (str->begin == str->end) return;
 	if (str->begin == str->end) return;
 	str->end--;
 	str->end--;
-	/*while (isspace((unsigned char)*str->end) && str->end >= str->begin)
-		str->end--;*/
+	while (((unsigned char)*str->end == '\r') && str->end >= str->begin)
+		str->end--;
 	str->end++;
 	str->end++;
 }
 }