summaryrefslogtreecommitdiff
path: root/src/koopatlas/map.cpp
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2012-11-25 15:35:13 -0600
committerColin Noga <Tempus@chronometry.ca>2012-11-25 15:35:13 -0600
commitdb34c0af338b8cf04f50b4ade98668869fd303e1 (patch)
treee373abe027205c0e8414cf6146ded59112b0ab72 /src/koopatlas/map.cpp
parent72b9b71b5b7fb5757849d19af3dfae21d0ab9c92 (diff)
parent1609b49c5c1777e663909b1936b2f8921677f230 (diff)
downloadkamek-db34c0af338b8cf04f50b4ade98668869fd303e1.tar.gz
kamek-db34c0af338b8cf04f50b4ade98668869fd303e1.zip
Merge branch 'level-select' of ssh://treeki.rustedlogic.net:30000/Kamek into level-select
Diffstat (limited to '')
-rw-r--r--src/koopatlas/map.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/koopatlas/map.cpp b/src/koopatlas/map.cpp
index ff28e19..c2cb13e 100644
--- a/src/koopatlas/map.cpp
+++ b/src/koopatlas/map.cpp
@@ -114,14 +114,20 @@ void dWMMap_c::renderer_c::drawXlu() {
void dWMMap_c::renderer_c::drawLayers() {
- dKPMapData_c *dataCls = &dScKoopatlas_c::instance->mapData;
+ dScKoopatlas_c *wm = dScKoopatlas_c::instance;
+ dKPMapData_c *dataCls = &wm->mapData;
dKPMapFile_s *data = dataCls->data;
baseZ = -100.0f - (2 * data->layerCount);
+ bool skipFirstLayer = (wm->currentMapID == 0) && !(wm->settings & 0x80000000);
+
beginRendering();
for (int iLayer = data->layerCount - 1; iLayer >= 0; iLayer--) {
+ if (skipFirstLayer && iLayer == 0)
+ continue;
+
dKPLayer_s *layer = data->layers[iLayer];
renderMtx[2][3] += 2.0f;