diff src/terraform_cmd.cpp @ 15187:03033976eab9 draft

(svn r19816) -Codechange: use static const uint for the unnamed 'tile consts' enum as well
author rubidium <rubidium@openttd.org>
date Thu, 13 May 2010 11:19:30 +0000 (2010-05-13)
parents 473c5cfc4d3d
children 93093fe9137c
line wrap: on
line diff
--- a/src/terraform_cmd.cpp
+++ b/src/terraform_cmd.cpp
@@ -156,7 +156,7 @@
 
 	/* Check range of destination height */
 	if (height < 0) return_cmd_error(STR_ERROR_ALREADY_AT_SEA_LEVEL);
-	if (height > MAX_TILE_HEIGHT) return_cmd_error(STR_ERROR_TOO_HIGH);
+	if (height > (int)MAX_TILE_HEIGHT) return_cmd_error(STR_ERROR_TOO_HIGH);
 
 	/*
 	 * Check if the terraforming has any effect.