diff options
author | Strangerke | 2012-12-31 00:18:08 +0100 |
---|---|---|
committer | Strangerke | 2012-12-31 00:18:08 +0100 |
commit | f59f7dafc3f6a5bc9210acf87a9355fadba6510a (patch) | |
tree | ee84a8e018eda2cb6e7725f1d244855f750ec6fd /engines/hopkins/files.cpp | |
parent | 17b5a57c6b686a7e1ad12b92c92ab79f8b8035fc (diff) | |
download | scummvm-rg350-f59f7dafc3f6a5bc9210acf87a9355fadba6510a.tar.gz scummvm-rg350-f59f7dafc3f6a5bc9210acf87a9355fadba6510a.tar.bz2 scummvm-rg350-f59f7dafc3f6a5bc9210acf87a9355fadba6510a.zip |
HOPKINS: Refactoring in FontManager and LinesManager
Diffstat (limited to 'engines/hopkins/files.cpp')
-rw-r--r-- | engines/hopkins/files.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/hopkins/files.cpp b/engines/hopkins/files.cpp index 6c792017ef..30570939d2 100644 --- a/engines/hopkins/files.cpp +++ b/engines/hopkins/files.cpp @@ -69,17 +69,15 @@ int FileManager::readStream(Common::ReadStream &stream, void *buf, size_t nbytes * Initialize censorship based on blood.dat file */ void FileManager::initCensorship() { - _vm->_globals.CENSURE = false; + _vm->_globals._censorshipFl = false; // If file doesn't exist, fallback to uncensored if (!fileExists(_vm->_globals.HOPSYSTEM, "BLOOD.DAT")) { constructFilename(_vm->_globals.HOPSYSTEM, "BLOOD.DAT"); char *data = (char *)loadFile(_vm->_globals._curFilename); - if (*(data + 6) == 'u' && *(data + 7) == 'k') - _vm->_globals.CENSURE = true; - if (*(data + 6) == 'U' && *(data + 7) == 'K') - _vm->_globals.CENSURE = true; + if ((data[6] == 'u' && data[7] == 'k') || (data[6] == 'U' && data[7] == 'K')) + _vm->_globals._censorshipFl = true; free(data); } |