mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
parent
ea644a036b
commit
ecbd31160e
@ -1015,6 +1015,8 @@ Character::Character(Parallaction *vm) : _vm(vm), _builder(&_ani) {
|
||||
_head = NULL;
|
||||
_objs = NULL;
|
||||
|
||||
_dummy = false;
|
||||
|
||||
_ani._left = 150;
|
||||
_ani._top = 100;
|
||||
_ani._z = 10;
|
||||
@ -1086,22 +1088,18 @@ void Character::setName(const char *name) {
|
||||
_prefix = _empty;
|
||||
_suffix = _empty;
|
||||
|
||||
if (IS_DUMMY_CHARACTER(name)) {
|
||||
begin = 0;
|
||||
end = 0;
|
||||
} else {
|
||||
_dummy = IS_DUMMY_CHARACTER(name);
|
||||
|
||||
if (!_dummy) {
|
||||
const char *s = strstr(name, "tras");
|
||||
if (s) {
|
||||
_suffix = _suffixTras;
|
||||
end = s;
|
||||
}
|
||||
|
||||
if (IS_MINI_CHARACTER(name)) {
|
||||
_prefix = _prefixMini;
|
||||
begin = name+4;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
memset(_baseName, 0, 30);
|
||||
@ -1137,6 +1135,9 @@ const char *Character::getFullName() const {
|
||||
return _fullName;
|
||||
}
|
||||
|
||||
bool Character::dummy() const {
|
||||
return _dummy;
|
||||
}
|
||||
|
||||
void Parallaction::beep() {
|
||||
_soundMan->playSfx("beep", 3, false);
|
||||
|
@ -231,6 +231,8 @@ protected:
|
||||
const char *_prefix;
|
||||
const char *_suffix;
|
||||
|
||||
bool _dummy;
|
||||
|
||||
char _name[30];
|
||||
char _baseName[30];
|
||||
char _fullName[30];
|
||||
@ -244,6 +246,7 @@ public:
|
||||
const char *getName() const;
|
||||
const char *getBaseName() const;
|
||||
const char *getFullName() const;
|
||||
bool dummy() const;
|
||||
};
|
||||
|
||||
|
||||
|
@ -364,7 +364,7 @@ void Parallaction_ns::changeCharacter(const char *name) {
|
||||
Common::String oldArchive = _disk->selectArchive((getFeatures() & GF_LANG_MULT) ? "disk1" : "disk0");
|
||||
_char._ani._cnv = _disk->loadFrames(_char.getFullName());
|
||||
|
||||
if (_char.getBaseName()[0] != '\0') {
|
||||
if (!_char.dummy()) {
|
||||
if (getPlatform() == Common::kPlatformAmiga && (getFeatures() & GF_LANG_MULT))
|
||||
_disk->selectArchive("disk0");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user