1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Corrects assumption of double sidedness.

This commit is contained in:
Thomas Harte 2018-01-08 09:35:29 -05:00 committed by GitHub
parent b36c917810
commit 35fc0a5c16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,5 +55,5 @@ int MSXDSK::get_head_count() {
}
long MSXDSK::get_file_offset_for_position(Track::Address address) {
return (address.position*2 + address.head) * 512 * 9;
return (address.position*head_count_ + address.head) * 512 * 9;
}