(svn r3187) Simplify overly complicated ifs, especially if (foo) return false; else return true; is confusing

This commit is contained in:
tron
2005-11-15 09:47:25 +00:00
parent 9f8c5d8fd2
commit 24f857ed5e
5 changed files with 17 additions and 55 deletions

View File

@@ -1077,13 +1077,7 @@ void DeleteVehicleOrders(Vehicle *v)
*/
bool IsOrderListShared(const Vehicle *v)
{
if (v->next_shared != NULL)
return true;
if (v->prev_shared != NULL)
return true;
return false;
return v->next_shared != NULL || v->prev_shared != NULL;
}
/**