aboutsummaryrefslogtreecommitdiff
path: root/engines/made
diff options
context:
space:
mode:
authorBenjamin Haisch2008-06-27 09:57:38 +0000
committerBenjamin Haisch2008-06-27 09:57:38 +0000
commitb6ad2b00350dffbc4051f3d5eb27b9ce5cb198c4 (patch)
tree45a31d184e645b114134d458a197843087fcbcc4 /engines/made
parent8cd03780f68a8558fd6b816629b0c2e3c9517a41 (diff)
downloadscummvm-rg350-b6ad2b00350dffbc4051f3d5eb27b9ce5cb198c4.tar.gz
scummvm-rg350-b6ad2b00350dffbc4051f3d5eb27b9ce5cb198c4.tar.bz2
scummvm-rg350-b6ad2b00350dffbc4051f3d5eb27b9ce5cb198c4.zip
- Fixed umlauts in printText
- Don't exit when a pmv video couldn't be found svn-id: r32817
Diffstat (limited to 'engines/made')
-rw-r--r--engines/made/pmvplayer.cpp5
-rw-r--r--engines/made/screen.cpp2
2 files changed, 5 insertions, 2 deletions
diff --git a/engines/made/pmvplayer.cpp b/engines/made/pmvplayer.cpp
index 1a8ca9c50a..831f1fab8e 100644
--- a/engines/made/pmvplayer.cpp
+++ b/engines/made/pmvplayer.cpp
@@ -40,7 +40,10 @@ void PmvPlayer::play(const char *filename) {
_surface = NULL;
_fd = new Common::File();
- _fd->open(filename);
+ if (!_fd->open(filename)) {
+ delete _fd;
+ return;
+ }
uint32 chunkType, chunkSize;
diff --git a/engines/made/screen.cpp b/engines/made/screen.cpp
index cecd0c8968..1d81793448 100644
--- a/engines/made/screen.cpp
+++ b/engines/made/screen.cpp
@@ -688,7 +688,7 @@ void Screen::printText(const char *text) {
for (int textPos = 0; textPos < textLen; textPos++) {
- uint c = text[textPos];
+ uint c = ((byte*)text)[textPos];
int charWidth = _font->getCharWidth(c);
if (c == 9) {