summaryrefslogtreecommitdiff
path: root/WorldSegment.cpp
diff options
context:
space:
mode:
authorJonas Ask2009-10-24 02:28:57 +0000
committerJonas Ask2009-10-24 02:28:57 +0000
commitfd079cc1f027971e629596ea856c1553ad5960f4 (patch)
tree559242a11caaa8917e4200365fbaae5cfbef14a7 /WorldSegment.cpp
parent76d373bb588e38fe504cdd6942d725b2ac3d5ea8 (diff)
downloadstonesense-fd079cc1f027971e629596ea856c1553ad5960f4.tar.gz
stonesense-fd079cc1f027971e629596ea856c1553ad5960f4.tar.bz2
stonesense-fd079cc1f027971e629596ea856c1553ad5960f4.tar.xz
Refactoring of Block.cpp. added DrawSpriteFromSheet function.
Improved graphics on creatures
Diffstat (limited to 'WorldSegment.cpp')
-rw-r--r--WorldSegment.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/WorldSegment.cpp b/WorldSegment.cpp
index 615fa69..eda1f99 100644
--- a/WorldSegment.cpp
+++ b/WorldSegment.cpp
@@ -77,8 +77,8 @@ for(uint32_t i=0; i < this->blocks.size(); i++){
bool WorldSegment::CoordinateInsideRegion(uint32_t x, uint32_t y, uint32_t z){
- if( x < 0 || x >= this->regionSize.x) return false;
- if( y < 0 || y >= this->regionSize.y) return false;
- if( z < 0 || z >= this->regionSize.z) return false;
+ if( x < 0 || (int32_t)x >= this->regionSize.x) return false;
+ if( y < 0 || (int32_t)y >= this->regionSize.y) return false;
+ if( z < 0 || (int32_t)z >= this->regionSize.z) return false;
return true;
} \ No newline at end of file