src/water_cmd.cpp
changeset 8274 cc1350409528
parent 8270 e7c342f6b14c
child 8279 b8b1e11e175c
equal deleted inserted replaced
8273:1d95cbda404b 8274:cc1350409528
   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 }