mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-31 15:49:06 +01:00
refactor(sonar): remove redundant casts (cpp:S1905)
This commit is contained in:
@@ -10833,13 +10833,13 @@ void TTrain::DynamicSet(TDynamicObject *d)
|
||||
{ // gdy jest człon od sprzęgu 1, a sprzęg łączony
|
||||
// warsztatowo (powiedzmy)
|
||||
if (mvOccupied->Couplers[1].Connected->Power > 1.0) // ten drugi ma moc
|
||||
mvSecond = (TMoverParameters *)mvOccupied->Couplers[1].Connected; // wskaźnik na drugiego
|
||||
mvSecond = mvOccupied->Couplers[1].Connected; // wskaźnik na drugiego
|
||||
}
|
||||
else if (mvOccupied->Couplers[0].Connected ? mvOccupied->Couplers[0].AllowedFlag & coupling::control : false)
|
||||
{ // gdy jest człon od sprzęgu 0, a sprzęg łączony
|
||||
// warsztatowo (powiedzmy)
|
||||
if (mvOccupied->Couplers[0].Connected->Power > 1.0) // ale ten drugi ma moc
|
||||
mvSecond = (TMoverParameters *)mvOccupied->Couplers[0].Connected; // wskaźnik na drugiego
|
||||
mvSecond = mvOccupied->Couplers[0].Connected; // wskaźnik na drugiego
|
||||
}
|
||||
// cache nearest unit equipped with pantographs
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user