17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-29 03:27:30 +01:00

First implementation of graph vehicles

This commit is contained in:
2026-10-14 12:20:49 +02:00
parent 70abf879b3
commit 1ef465264c
121 changed files with 12292 additions and 729 deletions

View File

@@ -4833,6 +4833,14 @@ TController::Update( double const Timedelta ) {
// uruchamiać przynajmniej raz na sekundę
if( ( iDrivigFlags & movePrimary ) == 0 ) { return; } // pasywny nic nie robi
if( false == simulation::is_ready ) { return; }
if( AIControllFlag && mvOccupied->Graph ) {
// the AI can't drive a vehicle defined by a graph (.vhg) yet; the vehicle is left as its graph keeps it
if( false == m_graphvehiclewarning ) {
WriteLog( "Warning: AI driver can't operate vehicle graph of \"" + mvOccupied->Name + "\"; the vehicle is left to the player" );
m_graphvehiclewarning = true;
}
return;
}
update_timers( Timedelta );
update_logs( Timedelta );