ASYLUM: prevent Armed Max from going to idle state

This commit is contained in:
alxpnv 2021-05-24 15:57:52 +03:00
parent bdbb14823d
commit 1746134db6

View File

@ -2202,8 +2202,8 @@ void Actor::updateStatusEnabled() {
_frameIndex = (_frameIndex + 1) % _frameCount;
if (_vm->screenUpdateCount - _lastScreenUpdate > 300) {
// All actors except Crow
if (strcmp((char *)&_name, "Crow")) {
// All actors except Crow and Armed Max
if (strcmp((char *)&_name, "Crow") && strcmp((char *)_name, "Armed Max")) {
if (_vm->getRandom(100) < 50
&& (!getSpeech()->getSoundResourceId() || !getSound()->isPlaying(getSpeech()->getSoundResourceId()))
&& isDefaultDirection(10))