diff options
Diffstat (limited to '')
-rw-r--r-- | src/koopatlas/map.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/koopatlas/map.cpp b/src/koopatlas/map.cpp index 0334926..35aadab 100644 --- a/src/koopatlas/map.cpp +++ b/src/koopatlas/map.cpp @@ -81,13 +81,13 @@ void dWMMap_c::renderer_c::drawLayers() { dKPMapData_c *dataCls = &dScKoopatlas_c::instance->mapData; dKPMapFile_s *data = dataCls->data; - baseZ = 1000 - (10 * data->layerCount); + baseZ = -(2 * data->layerCount); beginRendering(); for (int iLayer = data->layerCount - 1; iLayer >= 0; iLayer--) { dKPLayer_s *layer = data->layers[iLayer]; - renderMtx[2][3] += 10; + renderMtx[2][3] += 2; TileReport("Checking layer %d with type %d\n", iLayer, layer->type); if (layer->type == dKPLayer_s::OBJECTS) @@ -113,10 +113,10 @@ void dWMMap_c::renderer_c::beginRendering() { GXSetCurrentMtx(GX_PNMTX0); dWorldCamera_c *camObj = dWorldCamera_c::instance; - minX = ((int)camObj->screenLeft) / 16; - minY = ((int)(-camObj->screenTop) - 15) / 16; - maxX = (((int)(camObj->screenLeft + camObj->screenWidth)) + 15) / 16; - maxY = ((int)(-camObj->screenTop + camObj->screenHeight)) / 16; + minX = ((int)camObj->screenLeft) / 24; + minY = ((int)(-camObj->screenTop) - 23) / 24; + maxX = (((int)(camObj->screenLeft + camObj->screenWidth)) + 23) / 24; + maxY = ((int)(-camObj->screenTop + camObj->screenHeight)) / 24; GXClearVtxDesc(); |