ソースを参照

uh, is it suposed to be like that?

cuz it wasnt working on windows lol
xthydra 10 年 前
コミット
8a119ef9ac
1 ファイル変更4 行追加4 行削除
  1. 4 4
      tools/encoder/src/TMXTypes.cpp

+ 4 - 4
tools/encoder/src/TMXTypes.cpp

@@ -369,12 +369,12 @@ void TMXLayer::setupTiles()
 void TMXLayer::setTile(unsigned int x, unsigned int y, unsigned int gid)
 {
     struct layer_tile tile = {
-        .gid = gid & ~(FLIPPED_HORIZONTALLY_FLAG |
+        tile.gid = gid & ~(FLIPPED_HORIZONTALLY_FLAG |
                        FLIPPED_VERTICALLY_FLAG |
                        FLIPPED_DIAGONALLY_FLAG),
-        .horz_flip = (gid & FLIPPED_HORIZONTALLY_FLAG) != 0,
-        .vert_flip = (gid & FLIPPED_VERTICALLY_FLAG) != 0,
-        .diag_flip = (gid & FLIPPED_DIAGONALLY_FLAG) != 0,
+        tile.horz_flip = (gid & FLIPPED_HORIZONTALLY_FLAG) != 0,
+        tile.vert_flip = (gid & FLIPPED_VERTICALLY_FLAG) != 0,
+        tile.diag_flip = (gid & FLIPPED_DIAGONALLY_FLAG) != 0,
     };
 
     _tiles[x + y * _width] = tile;