(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:
@@ -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