aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/disk.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2007-03-10 22:55:09 +0000
committerNicola Mettifogo2007-03-10 22:55:09 +0000
commit93d910bf2d58ec56877a065464cd4723e7287cb4 (patch)
treeb1ec37b412490fb5b552f9f1ed32ce3ac93299fe /engines/parallaction/disk.cpp
parent4e5aa19f7479d6268a3a961e1d13d96a9aa155ff (diff)
downloadscummvm-rg350-93d910bf2d58ec56877a065464cd4723e7287cb4.tar.gz
scummvm-rg350-93d910bf2d58ec56877a065464cd4723e7287cb4.tar.bz2
scummvm-rg350-93d910bf2d58ec56877a065464cd4723e7287cb4.zip
simplified character mode handling
svn-id: r26074
Diffstat (limited to 'engines/parallaction/disk.cpp')
-rw-r--r--engines/parallaction/disk.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/parallaction/disk.cpp b/engines/parallaction/disk.cpp
index 7fa2f4c666..37b1a26a3e 100644
--- a/engines/parallaction/disk.cpp
+++ b/engines/parallaction/disk.cpp
@@ -179,15 +179,15 @@ void Disk::loadTalk(const char *name, Cnv *cnv) {
} else {
// character talk
-
+/*
if (scumm_stricmp(name, _doughName) &&
scumm_stricmp(name, _dinoName) &&
scumm_stricmp(name, _donnaName) &&
scumm_stricmp(name, _drkiName)) return;
-
+*/
char v20[PATH_LEN];
char *v24 = const_cast<char*>(name);
- if (!scumm_strnicmp(v24, "mini", 4)) {
+ if (IS_MINI_CHARACTER(v24)) {
v24+=4;
}
@@ -207,10 +207,10 @@ Script* Disk::loadLocation(const char *name) {
char archivefile[PATH_LEN];
- if (_vm->_characterName[0] == 'm') {
+ if (IS_MINI_CHARACTER(_vm->_characterName)) {
sprintf(archivefile, "%s%s", _vm->_characterName+4, _vm->_languageDir);
} else {
- if (_vm->_characterName[0] == 'D') strcpy(archivefile, _vm->_languageDir);
+ if (IS_DUMMY_CHARACTER(_vm->_characterName)) strcpy(archivefile, _vm->_languageDir);
else {
sprintf(archivefile, "%s%s", _vm->_characterName, _vm->_languageDir);
}
@@ -257,13 +257,13 @@ Script* Disk::loadScript(const char* name) {
void Disk::loadHead(const char* name, StaticCnv* cnv) {
char path[PATH_LEN];
-
+/*
if (scumm_stricmp(name, _doughName) &&
scumm_stricmp(name, _dinoName) &&
scumm_stricmp(name, _donnaName) &&
scumm_stricmp(name, _drkiName)) return;
-
- if (!scumm_strnicmp(name, "mini", 4)) {
+*/
+ if (IS_MINI_CHARACTER(name)) {
name += 4;
}
@@ -290,7 +290,7 @@ void Disk::loadFont(const char* name, Cnv* cnv) {
void Disk::loadObjects(const char *name, Cnv* cnv) {
- if (!scumm_strnicmp("mini", name, 4)) {
+ if (IS_MINI_CHARACTER(name)) {
name += 4;
}