File diff r27147:5d938ed2c7b5 → r27148:4e041ae27b9d
src/waypoint_cmd.cpp
Show inline comments
 
@@ -16,13 +16,13 @@
 
#include "waypoint_base.h"
 
#include "pathfinder/yapf/yapf_cache.h"
 
#include "strings_func.h"
 
#include "viewport_func.h"
 
#include "viewport_kdtree.h"
 
#include "window_func.h"
 
#include "date_func.h"
 
#include "timer/timer_game_calendar.h"
 
#include "vehicle_func.h"
 
#include "string_func.h"
 
#include "company_func.h"
 
#include "newgrf_station.h"
 
#include "company_base.h"
 
#include "water.h"
 
@@ -245,13 +245,13 @@ CommandCost CmdBuildRailWaypoint(DoComma
 
		wp->owner = GetTileOwner(start_tile);
 

	
 
		wp->rect.BeforeAddRect(start_tile, width, height, StationRect::ADD_TRY);
 

	
 
		wp->delete_ctr = 0;
 
		wp->facilities |= FACIL_TRAIN;
 
		wp->build_date = _date;
 
		wp->build_date = TimerGameCalendar::date;
 
		wp->string_id = STR_SV_STNAME_WAYPOINT;
 
		wp->train_station = new_location;
 

	
 
		if (wp->town == nullptr) MakeDefaultName(wp);
 

	
 
		wp->UpdateVirtCoord();
 
@@ -326,13 +326,13 @@ CommandCost CmdBuildBuoy(DoCommandFlag f
 

	
 
		wp->string_id = STR_SV_STNAME_BUOY;
 

	
 
		wp->facilities |= FACIL_DOCK;
 
		wp->owner = OWNER_NONE;
 

	
 
		wp->build_date = _date;
 
		wp->build_date = TimerGameCalendar::date;
 

	
 
		if (wp->town == nullptr) MakeDefaultName(wp);
 

	
 
		MakeBuoy(tile, wp->index, GetWaterClass(tile));
 
		CheckForDockingTile(tile);
 
		MarkTileDirtyByTile(tile);