
Why is there a big black empty space there?
Here's the code.
Code:
for( int x = 0; x < 4; x++);
{
clipTiles[ x ].x = x*32;
clipTiles[ x ].y = 0;
clipTiles[ x ].h = 32;
clipTiles[ x ].w = 32;
}
for( x = 0; x < 15; x++)
for( y = 0; y < 20; y++)
{
SDL_Rect offset;
offset.x = x*32;
offset.y = y*32;
SDL_BlitSurface(tiles, &clipTiles[map[x][y]], screen, &offset);
}
{
clipTiles[ x ].x = x*32;
clipTiles[ x ].y = 0;
clipTiles[ x ].h = 32;
clipTiles[ x ].w = 32;
}
for( x = 0; x < 15; x++)
for( y = 0; y < 20; y++)
{
SDL_Rect offset;
offset.x = x*32;
offset.y = y*32;
SDL_BlitSurface(tiles, &clipTiles[map[x][y]], screen, &offset);
}
The array is still the same.


