src/water_cmd.cpp
changeset 8770 f152783e12c3
parent 8766 c86cfa3a7580
child 8775 2b4b7efc41f6
equal deleted inserted replaced
8769:ee288fa819f6 8770:f152783e12c3
   391 
   391 
   392 				default:
   392 				default:
   393 					return false;
   393 					return false;
   394 			}
   394 			}
   395 
   395 
       
   396 		case MP_RAILWAY:  return GetRailGroundType(tile) == RAIL_GROUND_WATER;
   396 		case MP_STATION:  return IsOilRig(tile) || IsDock(tile) || IsBuoy(tile);
   397 		case MP_STATION:  return IsOilRig(tile) || IsDock(tile) || IsBuoy(tile);
   397 		case MP_INDUSTRY: return (GetIndustrySpec(GetIndustryType(tile))->behaviour & INDUSTRYBEH_BUILT_ONWATER) != 0;
   398 		case MP_INDUSTRY: return (GetIndustrySpec(GetIndustryType(tile))->behaviour & INDUSTRYBEH_BUILT_ONWATER) != 0;
   398 		default:          return false;
   399 		default:          return false;
   399 	}
   400 	}
   400 }
   401 }