equal
deleted
inserted
replaced
38 int ex = TileX(end); |
38 int ex = TileX(end); |
39 int ey = TileY(end); |
39 int ey = TileY(end); |
40 |
40 |
41 if (_game_mode != GM_EDITOR) return; |
41 if (_game_mode != GM_EDITOR) return; |
42 |
42 |
43 if (ex < sx) intswap(ex, sx); |
43 if (ex < sx) Swap(ex, sx); |
44 if (ey < sy) intswap(ey, sy); |
44 if (ey < sy) Swap(ey, sy); |
45 size_x = (ex - sx) + 1; |
45 size_x = (ex - sx) + 1; |
46 size_y = (ey - sy) + 1; |
46 size_y = (ey - sy) + 1; |
47 |
47 |
48 _generating_world = true; |
48 _generating_world = true; |
49 BEGIN_TILE_LOOP(tile, size_x, size_y, TileXY(sx, sy)) { |
49 BEGIN_TILE_LOOP(tile, size_x, size_y, TileXY(sx, sy)) { |
66 int ex = TileX(end); |
66 int ex = TileX(end); |
67 int ey = TileY(end); |
67 int ey = TileY(end); |
68 |
68 |
69 if (_game_mode != GM_EDITOR) return; |
69 if (_game_mode != GM_EDITOR) return; |
70 |
70 |
71 if (ex < sx) intswap(ex, sx); |
71 if (ex < sx) Swap(ex, sx); |
72 if (ey < sy) intswap(ey, sy); |
72 if (ey < sy) Swap(ey, sy); |
73 size_x = (ex - sx) + 1; |
73 size_x = (ex - sx) + 1; |
74 size_y = (ey - sy) + 1; |
74 size_y = (ey - sy) + 1; |
75 |
75 |
76 BEGIN_TILE_LOOP(tile, size_x, size_y, TileXY(sx, sy)) { |
76 BEGIN_TILE_LOOP(tile, size_x, size_y, TileXY(sx, sy)) { |
77 switch (GetTileType(tile)) { |
77 switch (GetTileType(tile)) { |