Kashin M.I. Lab work 8 #8

Closed
Sosees04ka wants to merge 6 commits from LabWork08 into LabWork07
Showing only changes of commit c3d2d0bd4b - Show all commits

View File

@ -57,10 +57,10 @@ namespace GasolineTanker
return false;
}
if (entity is EntityImprovedGasolineTanker entityImprovedGasolineTanker &&
otherEntity is EntityImprovedGasolineTanker otherEntityWarmlyShip && (
entityImprovedGasolineTanker.BodyColor != otherEntityWarmlyShip.BodyColor ||
entityImprovedGasolineTanker.DopColor != otherEntityWarmlyShip.DopColor ||
entityImprovedGasolineTanker.BodyKit != otherEntityWarmlyShip.BodyKit))
otherEntity is EntityImprovedGasolineTanker otherEntityWarmlyGasolineTanker && (
entityImprovedGasolineTanker.BodyColor != otherEntityWarmlyGasolineTanker.BodyColor ||
entityImprovedGasolineTanker.DopColor != otherEntityWarmlyGasolineTanker.DopColor ||
entityImprovedGasolineTanker.BodyKit != otherEntityWarmlyGasolineTanker.BodyKit))
{
return false;
}