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

build 190614. basic heating subsystem generator implementation

This commit is contained in:
tmj-fstate
2019-06-14 21:30:30 +02:00
parent bc0267dca6
commit b75a4d6075
4 changed files with 162 additions and 39 deletions

View File

@@ -5406,7 +5406,8 @@ TController::UpdateSituation(double dt) {
exchangetime = std::max( exchangetime, vehicle->LoadExchangeTime() );
vehicle = vehicle->Next();
}
if( exchangetime > 0 ) {
if( ( exchangetime > 0 )
|| ( mvOccupied->Vel > 2.0 ) ) { // HACK: force timer reset if the load exchange is cancelled due to departure
WaitingSet( exchangetime );
}
}