diff options
author | Treeki <treeki@gmail.com> | 2012-09-17 00:03:50 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-09-17 00:03:50 +0200 |
commit | 70fd03b724fb66981af89efc86064700b1ea1511 (patch) | |
tree | e61088d9fd572fee5a9b02e7c93d3cbfa38873f8 /src | |
parent | 3d6dbb391e8916235608ced97db1fb70223b209e (diff) | |
download | kamek-70fd03b724fb66981af89efc86064700b1ea1511.tar.gz kamek-70fd03b724fb66981af89efc86064700b1ea1511.zip |
should fix path layer overlaps, hopefully?
Diffstat (limited to 'src')
-rw-r--r-- | src/koopatlas/map.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/koopatlas/map.cpp b/src/koopatlas/map.cpp index 65d71b8..7869fde 100644 --- a/src/koopatlas/map.cpp +++ b/src/koopatlas/map.cpp @@ -126,6 +126,14 @@ void dWMMap_c::renderer_c::drawLayers() { renderTileLayer(layer, data->sectors); else if (layer->type == dKPLayer_s::DOODADS) renderDoodadLayer(layer); + + if (layer->type == dKPLayer_s::PATHS) { + // rebase the camera matrix + baseZ = 3500.0f; + nw4r::g3d::Camera cam3d(GetCameraByID(0)); + cam3d.GetCameraMtx(&renderMtx); + MTXTransApply(renderMtx, renderMtx, 0, 0, baseZ); + } } endRendering(); |