MADS: Phantom: Reword scene101::handleAnimation0 for consistency, remove some useless variables in scene113

This commit is contained in:
Strangerke 2015-11-23 00:27:04 +01:00
parent 9cf7d1ba60
commit a12516ee18

View File

@ -419,11 +419,11 @@ void Scene101::handleConversation1() {
}
void Scene101::handleAnimation0() {
int resetFrame;
if (_scene->getAnimFrame(_globals._animationIndexes[0]) == _callingFrame)
return;
if (_scene->getAnimFrame(_globals._animationIndexes[0]) != _callingFrame) {
_callingFrame = _scene->getAnimFrame(_globals._animationIndexes[0]);
resetFrame = -1;
int resetFrame = -1;
switch (_callingFrame) {
case 1:
case 9:
@ -492,7 +492,6 @@ void Scene101::handleAnimation0() {
_callingFrame = resetFrame;
}
}
}
void Scene101::handleAnimation1() {
if (_scene->getAnimFrame(_globals._animationIndexes[1]) == _chandelierFrame)
@ -8866,8 +8865,6 @@ void Scene113::handleDeadConversation() {
}
void Scene113::handleFlorentConversation() {
int random;
switch (_action._activeAction._verbId) {
case 3:
case 4:
@ -8930,15 +8927,13 @@ void Scene113::handleFlorentConversation() {
case 66:
if ((_florentStatus != 3) &&
(_florentStatus != 2)) {
random = _vm->getRandomNumber(1,5);
if (random == 1)
if (_vm->getRandomNumber(1, 5) == 1)
_florentStatus = 0;
}
if ((_raoulAction != 3) && (_raoulAction != 5) && (_raoulAction != 4) && (!_raoulStandingFl)) {
_raoulAction = 1;
random = _vm->getRandomNumber(1, 2);
if (random == 1)
if (_vm->getRandomNumber(1, 2) == 1)
_raoulAction = 2;
}
break;
@ -9006,8 +9001,6 @@ void Scene113::handleFlorentConversation() {
}
void Scene113::handleLoveConversation() {
int random;
switch (_action._activeAction._verbId) {
case 1:
case 2:
@ -9073,12 +9066,10 @@ void Scene113::handleLoveConversation() {
if (_raoulAction != 3) {
_raoulAction = 1;
random = _vm->getRandomNumber(1, 2);
if (random == 1) {
if (_vm->getRandomNumber(1, 2) == 1)
_raoulAction = 2;
}
}
}
break;
case 70: