diff options
Diffstat (limited to 'src/client/tile.h')
-rw-r--r-- | src/client/tile.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/tile.h b/src/client/tile.h index 8a8c5bd47..d4e25ea6a 100644 --- a/src/client/tile.h +++ b/src/client/tile.h @@ -237,6 +237,8 @@ struct TileLayer case TILE_MATERIAL_LIQUID_TRANSPARENT: material.MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL; break; + default: + break; } material.BackfaceCulling = (material_flags & MATERIAL_FLAG_BACKFACE_CULLING) != 0; if (!(material_flags & MATERIAL_FLAG_TILEABLE_HORIZONTAL)) { @@ -304,8 +306,8 @@ struct TileLayer struct TileSpec { TileSpec() { - for (int layer = 0; layer < MAX_TILE_LAYERS; layer++) - layers[layer] = TileLayer(); + for (auto &layer : layers) + layer = TileLayer(); } /*! |