소스 검색

[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)++;
 	if (str->begin == str->end) return;
 	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++;
 }