(svn r9856) [0.5] -Backport from trunk (r9855): 0.5
authorrubidium
Wed, 16 May 2007 08:21:16 +0000
branch0.5
changeset 5499 d8a566b68999
parent 5498 65a8d65f800a
child 5500 636a87c38ec1
(svn r9856) [0.5] -Backport from trunk (r9855):
- Fix: Do not perform any commands on MP_VOID tiles [FS#779] (r9855)
command.c
--- a/command.c	Tue May 15 23:32:50 2007 +0000
+++ b/command.c	Wed May 16 08:21:16 2007 +0000
@@ -335,7 +335,7 @@
 	CommandProc *proc;
 
 	/* Do not even think about executing out-of-bounds tile-commands */
-	if (tile >= MapSize()) {
+	if (tile >= MapSize() || IsTileType(tile, MP_VOID)) {
 		_cmd_text = NULL;
 		return CMD_ERROR;
 	}
@@ -413,7 +413,7 @@
 	int y = TileY(tile) * TILE_SIZE;
 
 	/* Do not even think about executing out-of-bounds tile-commands */
-	if (tile >= MapSize()) {
+	if (tile >= MapSize() || IsTileType(tile, MP_VOID)) {
 		_cmd_text = NULL;
 		return false;
 	}