summaryrefslogtreecommitdiff
path: root/src/koopatlas/map.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-01-16 02:05:06 +0100
committerTreeki <treeki@gmail.com>2012-01-16 02:05:06 +0100
commit9328f950fb9eebadb43f004a2f8366e7f5f14e14 (patch)
treee29775098947d69e62d5baf3d3b8d049df2b5097 /src/koopatlas/map.cpp
parentc5205660419679499cd6c7c89426279290bea5ce (diff)
downloadkamek-9328f950fb9eebadb43f004a2f8366e7f5f14e14.tar.gz
kamek-9328f950fb9eebadb43f004a2f8366e7f5f14e14.zip
fixed some rendering issues
Diffstat (limited to '')
-rw-r--r--src/koopatlas/map.cpp12
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();