Changeset - r6630:f442394754d9
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-05-16 08:20:37
rubidium@openttd.org
(svn r9855) -Fix: [FS#779] do not perform any commands on MP_VOID tiles.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/command.cpp
Show inline comments
 
@@ -339,7 +339,7 @@ int32 DoCommand(TileIndex tile, uint32 p
 
	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;
 
	}
 
@@ -417,7 +417,7 @@ bool DoCommandP(TileIndex tile, uint32 p
 
	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;
 
	}
0 comments (0 inline, 0 general)