Changeset - r1244:402b504dabfb
[Not reviewed]
master
0 1 0
tron - 19 years ago 2005-01-31 06:46:53
tron@openttd.org
(svn r1748) Enforce map size limits
1 file changed with 2 insertions and 1 deletions:
map.c
2
1
0 comments (0 inline, 0 general)
map.c
Show inline comments
 
@@ -19,7 +19,8 @@ void InitMap(uint log_x, uint log_y)
 
{
 
	uint map_size;
 

	
 
	assert(log_x <= 15 && log_y <= 15);
 
	if (log_x < 6 || log_x > 11 || log_y < 6 || log_y > 11)
 
		error("Invalid map size");
 

	
 
	DEBUG(map, 1)("Allocating map of size %dx%d", log_x, log_y);
 

	
0 comments (0 inline, 0 general)