mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 03:09:18 +02:00
maintenance: minor code cleanup
This commit is contained in:
@@ -3384,7 +3384,7 @@ void TMoverParameters::UpdatePipePressure(double dt)
|
|||||||
// dodać jakiś wpis do fizyki na to
|
// dodać jakiś wpis do fizyki na to
|
||||||
if( ( ( Couplers[ b ].Connected->TrainType & ( dt_ET41 | dt_ET42 ) ) != 0 ) &&
|
if( ( ( Couplers[ b ].Connected->TrainType & ( dt_ET41 | dt_ET42 ) ) != 0 ) &&
|
||||||
( ( Couplers[ b ].CouplingFlag & 36 ) == 36 ) )
|
( ( 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))
|
//if ((DynamicBrakeFlag) && (EngineType == ElectricInductionMotor))
|
||||||
//{
|
//{
|
||||||
|
|||||||
14
Model3d.cpp
14
Model3d.cpp
@@ -42,21 +42,13 @@ std::string *TSubModel::pasText;
|
|||||||
// 0x3F3F003F - wszystkie wymienne tekstury używane w danym cyklu
|
// 0x3F3F003F - wszystkie wymienne tekstury używane w danym cyklu
|
||||||
// Ale w TModel3d okerśla przezroczystość tekstur wymiennych!
|
// Ale w TModel3d okerśla przezroczystość tekstur wymiennych!
|
||||||
|
|
||||||
TSubModel::~TSubModel()
|
TSubModel::~TSubModel() {
|
||||||
{
|
|
||||||
/*
|
if (iFlags & 0x0200)
|
||||||
if (uiDisplayList)
|
|
||||||
glDeleteLists(uiDisplayList, 1);
|
|
||||||
*/
|
|
||||||
if (iFlags & 0x0200)
|
|
||||||
{ // wczytany z pliku tekstowego musi sam posprzątać
|
{ // wczytany z pliku tekstowego musi sam posprzątać
|
||||||
// SafeDeleteArray(Indices);
|
|
||||||
SafeDelete(Next);
|
SafeDelete(Next);
|
||||||
SafeDelete(Child);
|
SafeDelete(Child);
|
||||||
delete fMatrix; // własny transform trzeba usunąć (zawsze jeden)
|
delete fMatrix; // własny transform trzeba usunąć (zawsze jeden)
|
||||||
/*
|
|
||||||
delete[] Vertices;
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
delete[] smLetter; // używany tylko roboczo dla TP_TEXT, do przyspieszenia
|
delete[] smLetter; // używany tylko roboczo dla TP_TEXT, do przyspieszenia
|
||||||
// wyświetlania
|
// wyświetlania
|
||||||
|
|||||||
@@ -38,11 +38,6 @@ double GetDeltaRenderTime()
|
|||||||
return DeltaRenderTime;
|
return DeltaRenderTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
double GetfSinceStart()
|
|
||||||
{
|
|
||||||
return fSinceStart;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SetDeltaTime(double t)
|
void SetDeltaTime(double t)
|
||||||
{
|
{
|
||||||
DeltaTime = t;
|
DeltaTime = t;
|
||||||
|
|||||||
Reference in New Issue
Block a user