(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
This commit is contained in:
@@ -288,7 +288,7 @@ protected:
|
||||
m_err = EC_NO_WAY;
|
||||
return false;
|
||||
}
|
||||
// don't try to enter other player's depots
|
||||
// don't try to enter other company's depots
|
||||
if (GetTileOwner(m_new_tile) != m_veh_owner) {
|
||||
m_err = EC_OWNER;
|
||||
return false;
|
||||
|
@@ -91,7 +91,7 @@ protected:
|
||||
FORCEINLINE Tpf& Yapf() {return *static_cast<Tpf*>(this);}
|
||||
|
||||
public:
|
||||
/// return current settings (can be custom - player based - but later)
|
||||
/// return current settings (can be custom - company based - but later)
|
||||
FORCEINLINE const YAPFSettings& PfGetSettings() const
|
||||
{
|
||||
return *m_settings;
|
||||
|
@@ -139,13 +139,13 @@ public:
|
||||
Waypoint *wp = GetWaypoint(v->current_order.GetDestination());
|
||||
if (wp == NULL) {
|
||||
/* Invalid waypoint in orders! */
|
||||
DEBUG(yapf, 0, "Invalid waypoint in orders == 0x%04X (train %d, player %d)", v->current_order.GetDestination(), v->unitnumber, (PlayerID)v->owner);
|
||||
DEBUG(yapf, 0, "Invalid waypoint in orders == 0x%04X (train %d, company %d)", v->current_order.GetDestination(), v->unitnumber, (CompanyID)v->owner);
|
||||
break;
|
||||
}
|
||||
m_destTile = wp->xy;
|
||||
if (m_destTile != v->dest_tile) {
|
||||
/* Something is wrong with orders! */
|
||||
DEBUG(yapf, 0, "Invalid v->dest_tile == 0x%04X (train %d, player %d)", v->dest_tile, v->unitnumber, (PlayerID)v->owner);
|
||||
DEBUG(yapf, 0, "Invalid v->dest_tile == 0x%04X (train %d, company %d)", v->dest_tile, v->unitnumber, (CompanyID)v->owner);
|
||||
}
|
||||
m_dest_station_id = INVALID_STATION;
|
||||
m_destTrackdirs = TrackToTrackdirBits(AxisToTrack(GetWaypointAxis(wp->xy)));
|
||||
|
Reference in New Issue
Block a user