mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 18:39:18 +02:00
more complete parsing of .fiz data files
This commit is contained in:
@@ -193,7 +193,8 @@ double TBrakeCyl::P()
|
||||
static double const cD = 1;
|
||||
static double const pD = VD - cD;
|
||||
|
||||
double VtoC = Vol / Cap; // stosunek cisnienia do objetosci
|
||||
double VtoC = ( Cap > 0.0 ) ? Vol / Cap : 0.0; // stosunek cisnienia do objetosci.
|
||||
// Added div/0 trap for vehicles with incomplete definitions (cars etc)
|
||||
// P:=VtoC;
|
||||
if (VtoC < VS)
|
||||
return VtoC * pS / VS; // objetosc szkodliwa
|
||||
|
||||
Reference in New Issue
Block a user