small tweaks

This commit is contained in:
2025-07-11 00:47:13 +02:00
parent 1fa8284aea
commit 4fecda06d4
2 changed files with 5 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ void nni_drive_seekTo(nn_component *component, nni_drive *drive, nn_size_t secto
sector = sector - 1; // switch to 0 to N-1 sector addressing,
// which is much nicer to do math with
// and Lua made a big oopsie.
size_t old = drive->currentSector;
nn_size_t old = drive->currentSector;
nn_driveControl ctrl = nn_drive_getControl(component, drive);
if(ctrl.seekSectorsPerTick == 0) return; // seek latency disabled
nn_computer *computer = nn_getComputerOfComponent(component);