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

basic patches for most of discovered memory leaks, fixes for brake system components

This commit is contained in:
tmj-fstate
2017-01-18 07:56:51 +01:00
parent 4da7fedfe1
commit 6ab550831d
33 changed files with 824 additions and 929 deletions

View File

@@ -86,20 +86,29 @@ class TMTableTime
{
public:
double GameTime;
int dd;
int hh;
int mm;
int srh;
int srm; /*wschod slonca*/
int ssh;
int ssm; /*zachod slonca*/
double mr;
double GameTime = 0.0;
int dd = 0;
int hh = 0;
int mm = 0;
int srh = 0;
int srm = 0; /*wschod slonca*/
int ssh = 0;
int ssm = 0; /*zachod slonca*/
double mr = 0.0;
void UpdateMTableTime(double deltaT);
TMTableTime(int InitH, int InitM, int InitSRH, int InitSRM, int InitSSH, int InitSSM);
TMTableTime(int InitH, int InitM, int InitSRH, int InitSRM, int InitSSH, int InitSSM) :
hh( InitH ),
mm( InitM ),
srh( InitSRH ),
srm( InitSRM ),
ssh( InitSSH ),
ssm( InitSSM )
{}
TMTableTime() = default;
};
extern TMTableTime *GlobalTime;
extern std::shared_ptr<TMTableTime> GlobalTime;
}
#if !defined(NO_IMPLICIT_NAMESPACE_USE)