Changeset - r1903:f39feacd3de9
[Not reviewed]
master
0 1 0
tron - 19 years ago 2005-06-04 12:14:51
tron@openttd.org
(svn r2409) Missed one _map_owner -> IsTileOwner()
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rail_cmd.c
Show inline comments
 
@@ -329,25 +329,25 @@ int32 CmdBuildSingleRail(int x, int y, u
 
				default:
 
					// Get detailed error message
 
					return DoCommandByTile(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
 
			}
 
			break;
 

	
 
		case MP_RAILWAY:
 
			if (!CheckTrackCombination(m5, rail_bit, flags) ||
 
					!EnsureNoVehicle(tile)) {
 
				return CMD_ERROR;
 
			}
 
			if (m5 & RAIL_TYPE_SPECIAL ||
 
					_map_owner[tile] != _current_player ||
 
					!IsTileOwner(tile, _current_player) ||
 
					(_map3_lo[tile] & 0xFU) != p1) {
 
				// Get detailed error message
 
				return DoCommandByTile(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
 
			}
 

	
 
			ret = CheckRailSlope(tileh, rail_bit, m5 & RAIL_BIT_MASK, tile);
 
			if (CmdFailed(ret)) return ret;
 
			cost += ret;
 

	
 
			if (flags & DC_EXEC) {
 
				_map2[tile] &= ~RAIL_MAP2LO_GROUND_MASK; // Bare land
 
				_map5[tile] = m5 | rail_bit;
0 comments (0 inline, 0 general)