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

door and doorstep animations sync, temperature values included in the physics log

This commit is contained in:
tmj-fstate
2018-05-18 19:58:46 +02:00
parent 45e751312a
commit 6fd7dfc2fe
6 changed files with 129 additions and 44 deletions

View File

@@ -335,9 +335,7 @@ std::vector<std::string> const TTrain::fPress_labels = {
};
TTrain::TTrain() {
/*
Universal4Active = false;
*/
ShowNextCurrent = false;
// McZapkie-240302 - przyda sie do tachometru
fTachoVelocity = 0;
@@ -428,10 +426,10 @@ bool TTrain::Init(TDynamicObject *NewDynamicObject, bool e3d)
PyObject *TTrain::GetTrainState() {
auto const &mover = DynamicObject->MoverParameters;
auto const *mover = DynamicObject->MoverParameters;
auto *dict = PyDict_New();
if( ( dict == nullptr )
|| ( mover == nullptr ) ) {
|| ( mover == nullptr ) ) {
return nullptr;
}