aboutsummaryrefslogtreecommitdiff
path: root/sword2/maketext.cpp
diff options
context:
space:
mode:
authorOliver Kiehl2003-09-12 18:52:53 +0000
committerOliver Kiehl2003-09-12 18:52:53 +0000
commit9dc282f1d59c75f4aa0cbda6e85efd6ea30dc347 (patch)
treef25d78715f0ec40cf2ec5be5ead7e73ca88a22bf /sword2/maketext.cpp
parentc805e260a9a871db17866c2957ccc9042d46763c (diff)
downloadscummvm-rg350-9dc282f1d59c75f4aa0cbda6e85efd6ea30dc347.tar.gz
scummvm-rg350-9dc282f1d59c75f4aa0cbda6e85efd6ea30dc347.tar.bz2
scummvm-rg350-9dc282f1d59c75f4aa0cbda6e85efd6ea30dc347.zip
endian fixes
svn-id: r10192
Diffstat (limited to 'sword2/maketext.cpp')
-rw-r--r--sword2/maketext.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/sword2/maketext.cpp b/sword2/maketext.cpp
index 4f22632eab..392bdb9cbd 100644
--- a/sword2/maketext.cpp
+++ b/sword2/maketext.cpp
@@ -367,6 +367,13 @@ _frameHeader* FindChar( uint8 ch, uint8 *charSet )
if( (ch<FIRST_CHAR) ) // if 'ch' out of range
// if( (ch<FIRST_CHAR) || (ch>LAST_CHAR) ) // if 'ch' out of range
ch = DUD; // then print the 'dud' character (chequered flag)
+// FIXME: HACK!!!! remapping ' and ! because they cause FetchFrameHeader to crash....
+#ifdef MACOSX
+ if (ch == '\'')
+ ch = ' ';
+ if (ch == '!')
+ ch = ' ';
+#endif
// address of char = address of charSet + offset to char
//return (charSet + *(int32 *)(charSet + sizeof(_header) + 4 + 4*(ch - FIRST_CHAR)));