From 57c42e3927e8bab8c9b696658f0e137f56fa2b76 Mon Sep 17 00:00:00 2001 From: expwnent Date: Mon, 10 Jun 2013 15:40:57 -0400 Subject: [PATCH] Maps.ensureTileBlock: fixed temperature issues, and properly added blocks to the world.map.map_blocks vector to prevent weird glitches. --- library/modules/Maps.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/library/modules/Maps.cpp b/library/modules/Maps.cpp index 43b76904a..a32cb510f 100644 --- a/library/modules/Maps.cpp +++ b/library/modules/Maps.cpp @@ -188,9 +188,13 @@ df::map_block *Maps::ensureTileBlock (int32_t x, int32_t y, int32_t z) dsgn.bits.outside = true; for (int tx = 0; tx < 16; tx++) - for (int ty = 0; ty < 16; ty++) + for (int ty = 0; ty < 16; ty++) { slot->designation[tx][ty] = dsgn; - + slot->temperature_1[tx][ty] = column[z2]->temperature_1[tx][ty]; + slot->temperature_2[tx][ty] = column[z2]->temperature_2[tx][ty]; + } + + df::global::world->map.map_blocks.push_back(slot); return slot; }