mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-21 02:44:58 +01:00
fix(blackbox): the tapes go on after the editor, with the physics logs off
The tapes of the user's vehicles were written by update() after the check for the writer of the recording, which close() drops on entering the editor (F11). With "physicslog no", the speed recorder's tape ended at F11 while the drivers' own logs of "physicslog yes" went on. The tapes are files of their own: they are kept from the moment the recording was to be made, the file made or not, closed or not, until the simulator closes, after the gap of the time in the editor. Only the recording itself stops at F11, as before. Reported in the review of #385. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -30,7 +30,8 @@ for a while doesn't lose its lines: they are written once it can be, the last 64
|
||||
|
||||
The recording starts once the scenery is loaded and ends when the simulator closes. Going into the
|
||||
editor (F11) ends it too, since the editor may take away the tracks and the vehicles it refers to; no
|
||||
new one starts when driving goes on after that.
|
||||
new one starts when driving goes on after that. The `.dat` logs it gives with the physics logs off go on
|
||||
then, after the gap of the time in the editor, until the simulator closes: they are files of their own.
|
||||
|
||||
It is written as the session goes and flushed once a second, so the file can be read while the simulator
|
||||
still writes it, and after a crash all but the last second is there. A file without the `end` record
|
||||
|
||||
Reference in New Issue
Block a user