(svn r11642) -Codechange: VehicleFromPos does check for v->tile == tile, so remove useless checks

This commit is contained in:
smatz
2007-12-15 23:11:18 +00:00
parent cbcfcb3bf4
commit acf6e08f78
7 changed files with 32 additions and 76 deletions

View File

@@ -1015,7 +1015,7 @@ static void* EnumFindVehToOvertake(Vehicle* v, void* data)
const OvertakeData* od = (OvertakeData*)data;
return
v->tile == od->tile && v->type == VEH_ROAD && v->First() == v && v != od->u && v != od->v ?
v->type == VEH_ROAD && v->First() == v && v != od->u && v != od->v ?
v : NULL;
}