File diff r27147:5d938ed2c7b5 → r27148:4e041ae27b9d
src/ship_cmd.cpp
Show inline comments
 
@@ -13,25 +13,25 @@
 
#include "timetable.h"
 
#include "news_func.h"
 
#include "company_func.h"
 
#include "pathfinder/npf/npf_func.h"
 
#include "depot_base.h"
 
#include "station_base.h"
 
#include "newgrf_engine.h"
 
#include "pathfinder/yapf/yapf.h"
 
#include "newgrf_sound.h"
 
#include "spritecache.h"
 
#include "strings_func.h"
 
#include "window_func.h"
 
#include "date_func.h"
 
#include "timer/timer_game_calendar.h"
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "ai/ai.hpp"
 
#include "game/game.hpp"
 
#include "engine_base.h"
 
#include "company_base.h"
 
#include "tunnelbridge_map.h"
 
#include "zoom_func.h"
 
#include "framerate_type.h"
 
#include "industry.h"
 
#include "industry_map.h"
 
#include "ship_cmd.h"
 
@@ -882,26 +882,26 @@ CommandCost CmdBuildShip(DoCommandFlag f
 

	
 
		v->last_station_visited = INVALID_STATION;
 
		v->last_loading_station = INVALID_STATION;
 
		v->engine_type = e->index;
 

	
 
		v->reliability = e->reliability;
 
		v->reliability_spd_dec = e->reliability_spd_dec;
 
		v->max_age = e->GetLifeLengthInDays();
 

	
 
		v->state = TRACK_BIT_DEPOT;
 

	
 
		v->SetServiceInterval(Company::Get(_current_company)->settings.vehicle.servint_ships);
 
		v->date_of_last_service = _date;
 
		v->build_year = _cur_year;
 
		v->date_of_last_service = TimerGameCalendar::date;
 
		v->build_year = TimerGameCalendar::year;
 
		v->sprite_cache.sprite_seq.Set(SPR_IMG_QUERY);
 
		v->random_bits = VehicleRandomBits();
 

	
 
		v->UpdateCache();
 

	
 
		if (e->flags & ENGINE_EXCLUSIVE_PREVIEW) SetBit(v->vehicle_flags, VF_BUILT_AS_PROTOTYPE);
 
		v->SetServiceIntervalIsPercent(Company::Get(_current_company)->settings.vehicle.servint_ispercent);
 

	
 
		v->InvalidateNewGRFCacheOfChain();
 

	
 
		v->cargo_cap = e->DetermineCapacity(v);