summaryrefslogtreecommitdiff
path: root/src/koopatlas/map.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-11-24 17:00:56 +0100
committerTreeki <treeki@gmail.com>2012-11-24 17:00:56 +0100
commit1609b49c5c1777e663909b1936b2f8921677f230 (patch)
tree48fadc91172ce2329118df15808d521ce327a6b8 /src/koopatlas/map.cpp
parentad5b71629c3438aba0ee559d2b888b5f5d59567f (diff)
downloadkamek-1609b49c5c1777e663909b1936b2f8921677f230.tar.gz
kamek-1609b49c5c1777e663909b1936b2f8921677f230.zip
cloud animation at start of game. untested
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;