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

scan table improvements from refs/remotes/firleju/mover_in_c++

This commit is contained in:
tmj-fstate
2017-09-02 17:18:26 +02:00
parent fa8881f52f
commit 5d7206b369
6 changed files with 252 additions and 163 deletions

View File

@@ -2939,6 +2939,8 @@ bool TDynamicObject::Update(double dt, double dt1)
MoverParameters->AccN *= -ABuGetDirection();
*/
// if (dDOMoveLen!=0.0) //Ra: nie może być, bo blokuje Event0
if( Mechanik )
Mechanik->MoveDistanceAdd( dDOMoveLen ); // dodanie aktualnego przemieszczenia
Move(dDOMoveLen);
if (!bEnabled) // usuwane pojazdy nie mają toru
{ // pojazd do usunięcia