16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 19:49:19 +02:00

partial render code revert, oerlikon brakes fix, sound fixes

This commit is contained in:
tmj-fstate
2017-03-16 22:18:14 +01:00
parent b878b3e407
commit 441b39ce5f
26 changed files with 518 additions and 437 deletions

View File

@@ -137,10 +137,10 @@ static int const i_bcpno = 6;
//klasa obejmujaca pojedyncze zbiorniki
class TReservoir {
protected:
double Cap = 1.0;
double Vol = 0.0;
double dVol = 0.0;
protected:
double Cap{ 1.0 };
double Vol{ 0.0 };
double dVol{ 0.0 };
public:
void CreateCap(double Capacity);
@@ -500,7 +500,7 @@ class TDriverHandle {
public:
bool Time = false;
bool TimeEP = false;
double Sounds[ 5 ]; //wielkosci przeplywow dla dzwiekow
double Sounds[ 5 ]; //wielkosci przeplywow dla dzwiekow
virtual double GetPF(double i_bcp, double PP, double HP, double dt, double ep);
virtual void Init(double Press);
@@ -509,6 +509,8 @@ class TDriverHandle {
virtual double GetSound(int i);
virtual double GetPos(int i);
virtual double GetEP(double pos);
inline TDriverHandle() { ::SecureZeroMemory( Sounds, sizeof( Sounds ) ); }
};
class TFV4a : public TDriverHandle {