}
/* Draw background: */
- for (y = 0; y < 15; ++y)
+ for (y = 0; y < 16 && y < level->height; ++y)
{
for (x = 0; x < 21; ++x)
{
}
/* Draw interactive tiles: */
- for (y = 0; y < 15; ++y)
+ for (y = 0; y < 16 && y < level->height; ++y)
{
for (x = 0; x < 21; ++x)
{
broken_bricks[i]->draw();
/* Draw foreground: */
- for (y = 0; y < 15; ++y)
+ for (y = 0; y < 16 && y < level->height; ++y)
{
for (x = 0; x < 21; ++x)
{