summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-02-24 20:59:17 +0000
committersmatz <smatz@openttd.org>2009-02-24 20:59:17 +0000
commit34bfb3510567e66b6bb584ad7f8ec48ff2b5095e (patch)
tree50574d6b6befd846433d33e7a7a619e719b57d0a /src/map.cpp
parent471c770a08f159af22ce9d7dcdbbb0e675ca8bac (diff)
downloadopenttd-34bfb3510567e66b6bb584ad7f8ec48ff2b5095e.tar.xz
(svn r15568) -Cleanup: *allocT/AllocaM doesn't return NULL when allocating fails
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 77952cc2f..ba6c82dba 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -52,11 +52,6 @@ void AllocateMap(uint size_x, uint size_y)
free(_m);
free(_me);
- /* XXX @todo handle memory shortage more gracefully
- * CallocT does the out-of-memory check
- * Maybe some attemps could be made to try with smaller maps down to 64x64
- * Maybe check for available memory before doing the calls, after all, we know how big
- * the map is */
_m = CallocT<Tile>(_map_size);
_me = CallocT<TileExtended>(_map_size);
}