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

Fix for autoreturning controller

This commit is contained in:
Królik Uszasty
2019-03-21 21:47:35 +01:00
committed by tmj-fstate
parent ea8b38489a
commit 75cc0b2a24
3 changed files with 78 additions and 3 deletions

View File

@@ -4384,7 +4384,9 @@ TController::UpdateSituation(double dt) {
auto const reactiontime = std::min( ReactionTime, 2.0 );
if( LastReactionTime < reactiontime ) { return; }
CheckTimeControllers();
if (AIControllFlag) {
CheckTimeControllers();
}
LastReactionTime -= reactiontime;
// Ra: nie wiem czemu ReactionTime potrafi dostać 12 sekund, to jest przegięcie, bo przeżyna STÓJ