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

maintenance: minor code cleanup

This commit is contained in:
tmj-fstate
2017-11-30 16:32:59 +01:00
parent 59e8c70564
commit ef2195fbcc
4 changed files with 4 additions and 19 deletions

View File

@@ -3384,7 +3384,7 @@ void TMoverParameters::UpdatePipePressure(double dt)
// dodać jakiś wpis do fizyki na to
if( ( ( Couplers[ b ].Connected->TrainType & ( dt_ET41 | dt_ET42 ) ) != 0 ) &&
( ( Couplers[ b ].CouplingFlag & 36 ) == 36 ) )
LocBrakePress = Max0R( Couplers[ b ].Connected->LocHandle->GetCP(), LocBrakePress );
LocBrakePress = std::max( Couplers[ b ].Connected->LocHandle->GetCP(), LocBrakePress );
//if ((DynamicBrakeFlag) && (EngineType == ElectricInductionMotor))
//{

View File

@@ -42,21 +42,13 @@ std::string *TSubModel::pasText;
// 0x3F3F003F - wszystkie wymienne tekstury używane w danym cyklu
// Ale w TModel3d okerśla przezroczystość tekstur wymiennych!
TSubModel::~TSubModel()
{
/*
if (uiDisplayList)
glDeleteLists(uiDisplayList, 1);
*/
if (iFlags & 0x0200)
TSubModel::~TSubModel() {
if (iFlags & 0x0200)
{ // wczytany z pliku tekstowego musi sam posprzątać
// SafeDeleteArray(Indices);
SafeDelete(Next);
SafeDelete(Child);
delete fMatrix; // własny transform trzeba usunąć (zawsze jeden)
/*
delete[] Vertices;
*/
}
delete[] smLetter; // używany tylko roboczo dla TP_TEXT, do przyspieszenia
// wyświetlania

View File

@@ -38,11 +38,6 @@ double GetDeltaRenderTime()
return DeltaRenderTime;
}
double GetfSinceStart()
{
return fSinceStart;
}
void SetDeltaTime(double t)
{
DeltaTime = t;

View File

@@ -16,8 +16,6 @@ double GetTime();
double GetDeltaTime();
double GetDeltaRenderTime();
double GetfSinceStart();
void SetDeltaTime(double v);
bool GetSoundTimer();