From 74d902c62bc609d6d89f9e1ff0a4c32505fcf0d9 Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Mon, 5 Apr 2004 18:45:40 +0000 Subject: removed exception for no used nut font svn-id: r13469 --- scumm/nut_renderer.cpp | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/scumm/nut_renderer.cpp b/scumm/nut_renderer.cpp index 12b9549ad6..2bf61d05a9 100644 --- a/scumm/nut_renderer.cpp +++ b/scumm/nut_renderer.cpp @@ -149,23 +149,8 @@ bool NutRenderer::loadFont(const char *filename, const char *directory) { for (int l = 0; l < _nbChars; l++) { offset += READ_BE_UINT32(dataSrc + offset + 4) + 8; - - // TODO/FIXME: The code checks for a "shift" in the FRME headers. Well, neither - // in my german nor in my english NUT fonts does that occur, but it's very typical - // for IFF style formats (like this here) to "pad" odd sized blocks. Hence, it might - // be a cleaner solution to insert this adjustment here: - // if (offset & 1) - // offset++; - // And then get rid of the hack for the shifted FRME. I'd do that right now, but since - // I have no way to test this (read: no data files where this issue occurs), I am - // deferring this job for now :-) - - if ((READ_BE_UINT32(dataSrc + offset) == 'FRME') || (READ_BE_UINT32(dataSrc + offset + 1) == 'FRME')) { - if (READ_BE_UINT32(dataSrc + offset) == 'FRME') { - offset += 8; - } else { // hack for proper offset - offset += 9; - } + if (READ_BE_UINT32(dataSrc + offset) == 'FRME') { + offset += 8; if (READ_BE_UINT32(dataSrc + offset) == 'FOBJ') { int codec = READ_LE_UINT16(dataSrc + offset + 8); -- cgit v1.2.3