summaryrefslogtreecommitdiff
path: root/MapLoading.cpp
diff options
context:
space:
mode:
authorCaldfir2012-05-01 04:34:35 -0700
committerCaldfir2012-05-01 04:34:35 -0700
commit70890ad5883972a9e810745da4f6a193944ed4d4 (patch)
treec82f39209f70544e6dcf2804dac432103c6030c7 /MapLoading.cpp
parente8b469af0a3245b25414398a4ea2d163822f2ce6 (diff)
downloadstonesense-70890ad5883972a9e810745da4f6a193944ed4d4.tar.gz
stonesense-70890ad5883972a9e810745da4f6a193944ed4d4.tar.bz2
stonesense-70890ad5883972a9e810745da4f6a193944ed4d4.tar.xz
Moved bounds checking into movement code from segment loading code. Added keypress 'Z' to 'zero' the current offset/coordinates. Added quiet logging function for printing non-essential updates to the dfhack console. All ties in to newly revamped large screenshot code.
Diffstat (limited to 'MapLoading.cpp')
-rw-r--r--MapLoading.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/MapLoading.cpp b/MapLoading.cpp
index 14e945d..2f825bc 100644
--- a/MapLoading.cpp
+++ b/MapLoading.cpp
@@ -778,11 +778,6 @@ WorldSegment* ReadMapSegment(int x, int y, int z, int sizex, int sizey, int size
config.cellDimX = cellDimX;
config.cellDimY = cellDimY;
config.cellDimZ = cellDimZ;
- //bound view to world
- if(x > cellDimX -sizex/2) DisplayedSegmentX = x = cellDimX -sizex/2;
- if(y > cellDimY -sizey/2) DisplayedSegmentY = y = cellDimY -sizey/2;
- if(x < -sizex/2) DisplayedSegmentX = x = -sizex/2;
- if(y < -sizey/2) DisplayedSegmentY = y = -sizey/2;
//setup new world segment
WorldSegment* segment = new WorldSegment(x,y,z,sizex,sizey,sizez);