From 70fd03b724fb66981af89efc86064700b1ea1511 Mon Sep 17 00:00:00 2001 From: Treeki Date: Mon, 17 Sep 2012 00:03:50 +0200 Subject: should fix path layer overlaps, hopefully? --- src/koopatlas/map.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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(); -- cgit v1.2.3