Yes, it *is* possible to have two errors in the same line (nw)

This commit is contained in:
Olivier Galibert 2012-11-20 07:37:44 +00:00
parent 38c841bcf5
commit bd496dae19

View File

@ -419,7 +419,7 @@ bool imd_format::load(io_generic *io, UINT32 form_factor, floppy_image *image)
static const int rates[3] = { 500000, 300000, 250000 };
bool fm = mode < 3;
int rate = rates[mode % 3];
int rpm = form_factor == floppy_image::FF_8 || (form_factor == floppy_image::FF_525 && rate >= 300) ? 360 : 300;
int rpm = form_factor == floppy_image::FF_8 || (form_factor == floppy_image::FF_525 && rate >= 300000) ? 360 : 300;
int cell_count = (fm ? 1 : 2)*rate*60/rpm;
const UINT8 *snum = img+pos;