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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user