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

Fix for autoreturning controller

This commit is contained in:
Królik Uszasty
2019-03-21 21:47:35 +01:00
parent 403c29746d
commit 91a7a94682
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