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

crash fixes

This commit is contained in:
milek7
2017-09-16 22:07:22 +02:00
parent e5ad6be865
commit 7f97532bba
2 changed files with 6 additions and 1 deletions

View File

@@ -317,6 +317,9 @@ void TGauge::UpdateValue()
}
};
// todo: ugly approach to getting train translation
// maybe cache gauge position
extern TWorld World;
void TGauge::play( sound *Sound )

View File

@@ -1090,7 +1090,9 @@ void TSubModel::ParentMatrix(float4x4 *m)
// jeśli nie zostało wykonane Init() (tzn. zaraz po wczytaniu T3D), to
// dodatkowy obrót
// obrót T3D jest wymagany np. do policzenia wysokości pantografów
*m = float4x4(*fMatrix); // skopiowanie, bo będziemy mnożyć
m->Identity();
if (fMatrix)
*m = float4x4(*fMatrix); // skopiowanie, bo będziemy mnożyć
// m(3)[1]=m[3][1]+0.054; //w górę o wysokość ślizgu (na razie tak)
TSubModel *sm = this;
while (sm->Parent)