aboutsummaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-10-04 02:50:04 -0400
committerkwolekr <kwolekr@minetest.net>2015-10-04 04:00:16 -0400
commitf0cd5da687ca216b4bdd9abe7bc8038a679d3763 (patch)
tree329909b22c4494a2df2249c5697acb961b0fc527 /src/map.cpp
parentb12bdcce348323247811b9a0299e2e9294991d13 (diff)
downloadminetest-f0cd5da687ca216b4bdd9abe7bc8038a679d3763.tar.gz
minetest-f0cd5da687ca216b4bdd9abe7bc8038a679d3763.tar.bz2
minetest-f0cd5da687ca216b4bdd9abe7bc8038a679d3763.zip
Define and use limit constants for Irrlicht fixed-width types
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp
index fd796734e..e3cafd673 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -1434,7 +1434,7 @@ void Map::timerUpdate(float dtime, float unload_timeout, u32 max_loaded_blocks,
beginSave();
// If there is no practical limit, we spare creation of mapblock_queue
- if (max_loaded_blocks == (u32)-1) {
+ if (max_loaded_blocks == U32_MAX) {
for (std::map<v2s16, MapSector*>::iterator si = m_sectors.begin();
si != m_sectors.end(); ++si) {
MapSector *sector = si->second;