mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-01 01:19:51 +01:00
- A proper ./configure, so everything needs to be configured only once, not for every make. - Usage of makedepend when available. This greatly reduces the time needed for generating the dependencies. - A generator for all project files. There is a single file with sources, which is used to generate Makefiles and the project files for MSVC. - Proper support for OSX universal binaries. - Object files for non-MSVC compiles are also placed in separate directories, making is faster to switch between debug and release compiles and it does not touch the directory with the source files. - Functionality to make a bundle of all needed files for for example a nightly or distribution of a binary with all needed GRFs and language files. Note: as this merge moves almost all files, it is recommended to make a backup of your working copy before updating your working copy.
48 lines
1.3 KiB
C++
48 lines
1.3 KiB
C++
/* $Id$ */
|
|
|
|
#include "../stdafx.h"
|
|
#include "yapf.hpp"
|
|
#include "follow_track.hpp"
|
|
|
|
void FollowTrackInit(FollowTrack_t *This, const Vehicle* v)
|
|
{
|
|
CFollowTrackWater& F = *(CFollowTrackWater*) This;
|
|
F.Init(v, NULL);
|
|
}
|
|
|
|
bool FollowTrackWater(FollowTrack_t *This, TileIndex old_tile, Trackdir old_td)
|
|
{
|
|
CFollowTrackWater& F = *(CFollowTrackWater*) This;
|
|
return F.Follow(old_tile, old_td);
|
|
}
|
|
|
|
bool FollowTrackRoad(FollowTrack_t *This, TileIndex old_tile, Trackdir old_td)
|
|
{
|
|
CFollowTrackRoad& F = *(CFollowTrackRoad*) This;
|
|
return F.Follow(old_tile, old_td);
|
|
}
|
|
|
|
bool FollowTrackRail(FollowTrack_t *This, TileIndex old_tile, Trackdir old_td)
|
|
{
|
|
CFollowTrackRail& F = *(CFollowTrackRail*) This;
|
|
return F.Follow(old_tile, old_td);
|
|
}
|
|
|
|
bool FollowTrackWaterNo90(FollowTrack_t *This, TileIndex old_tile, Trackdir old_td)
|
|
{
|
|
CFollowTrackWaterNo90& F = *(CFollowTrackWaterNo90*) This;
|
|
return F.Follow(old_tile, old_td);
|
|
}
|
|
|
|
bool FollowTrackRoadNo90(FollowTrack_t *This, TileIndex old_tile, Trackdir old_td)
|
|
{
|
|
CFollowTrackRoadNo90& F = *(CFollowTrackRoadNo90*) This;
|
|
return F.Follow(old_tile, old_td);
|
|
}
|
|
|
|
bool FollowTrackRailNo90(FollowTrack_t *This, TileIndex old_tile, Trackdir old_td)
|
|
{
|
|
CFollowTrackRailNo90& F = *(CFollowTrackRailNo90*) This;
|
|
return F.Follow(old_tile, old_td);
|
|
}
|