mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 05:29:17 +02:00
basic patches for most of discovered memory leaks, fixes for brake system components
This commit is contained in:
15
mtable.cpp
15
mtable.cpp
@@ -15,7 +15,7 @@ http://mozilla.org/MPL/2.0/.
|
||||
#include "mtable.h"
|
||||
|
||||
// using namespace Mtable;
|
||||
TMTableTime *Mtable::GlobalTime;
|
||||
std::shared_ptr<TMTableTime> Mtable::GlobalTime;
|
||||
|
||||
double CompareTime(double t1h, double t1m, double t2h, double t2m) /*roznica czasu w minutach*/
|
||||
// zwraca ró¿nicê czasu
|
||||
@@ -529,19 +529,6 @@ void TMTableTime::UpdateMTableTime(double deltaT)
|
||||
GameTime = GameTime + deltaT;
|
||||
}
|
||||
|
||||
TMTableTime::TMTableTime(int InitH, int InitM, int InitSRH, int InitSRM, int InitSSH, int InitSSM)
|
||||
{
|
||||
GameTime = 0.0;
|
||||
dd = 0;
|
||||
hh = InitH;
|
||||
mm = InitM;
|
||||
srh = InitSRH;
|
||||
srm = InitSRM;
|
||||
ssh = InitSSH;
|
||||
ssm = InitSSM;
|
||||
mr = 0.0;
|
||||
}
|
||||
|
||||
bool TTrainParameters::DirectionChange()
|
||||
// sprawdzenie, czy po zatrzymaniu wykonaæ kolejne komendy
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user