(svn r11068) -Codechange: remove Vehicle::HasFront as all vehicles have the Vehicle::first pointer correctly set.
This commit is contained in:
@@ -355,7 +355,7 @@ static bool HandleOrderVehClick(const Vehicle *v, const Vehicle *u, Window *w)
|
||||
{
|
||||
if (u->type != v->type) return false;
|
||||
|
||||
if (u->HasFront() && !u->IsPrimaryVehicle()) {
|
||||
if (!u->IsPrimaryVehicle()) {
|
||||
u = u->First();
|
||||
if (!u->IsPrimaryVehicle()) return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user