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:
@@ -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))
|
||||
//{
|
||||
|
||||
14
Model3d.cpp
14
Model3d.cpp
@@ -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
|
||||
|
||||
@@ -38,11 +38,6 @@ double GetDeltaRenderTime()
|
||||
return DeltaRenderTime;
|
||||
}
|
||||
|
||||
double GetfSinceStart()
|
||||
{
|
||||
return fSinceStart;
|
||||
}
|
||||
|
||||
void SetDeltaTime(double t)
|
||||
{
|
||||
DeltaTime = t;
|
||||
|
||||
Reference in New Issue
Block a user