summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-10-29 14:59:37 +0000
committeralberth <alberth@openttd.org>2010-10-29 14:59:37 +0000
commit606519c1127ceaa96f8bd031371d954daa7ef712 (patch)
treeeab06e250a7313f836340eeac0b7f455d3c7c873
parente5f1161eddc899f409cf4d9a4b3df770a9cc57c2 (diff)
downloadopenttd-606519c1127ceaa96f8bd031371d954daa7ef712.tar.xz
(svn r21055) -Codechange [FS#4190]: Code style fix (chillcore)
-rw-r--r--src/map.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 1e2761ad8..ae05a6cd3 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -42,8 +42,9 @@ void AllocateMap(uint size_x, uint size_y)
if (!IsInsideMM(size_x, MIN_MAP_SIZE, MAX_MAP_SIZE + 1) ||
!IsInsideMM(size_y, MIN_MAP_SIZE, MAX_MAP_SIZE + 1) ||
(size_x & (size_x - 1)) != 0 ||
- (size_y & (size_y - 1)) != 0)
+ (size_y & (size_y - 1)) != 0) {
error("Invalid map size");
+ }
DEBUG(map, 1, "Allocating map of size %dx%d", size_x, size_y);