mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
MORTEVIELLE: Use similar check in fctClose and fctSearch than in fctSelfPut
This commit is contained in:
parent
2b03c63631
commit
558f404e62
@ -523,9 +523,12 @@ void MortevielleEngine::fctSearch() {
|
||||
setCoordinates(7);
|
||||
if (_num != 0) {
|
||||
int i;
|
||||
for (i = 1; (i <= 6) && (_num != _openObjects[i]); i++)
|
||||
;
|
||||
if (_num == _openObjects[i]) {
|
||||
for (i = 1; i <= 6; i++) {
|
||||
if (_num == _openObjects[i])
|
||||
break;
|
||||
}
|
||||
|
||||
if (i <= 6) {
|
||||
if (_currBitIndex > 0)
|
||||
_coreVar._faithScore += 3;
|
||||
|
||||
@ -913,9 +916,12 @@ void MortevielleEngine::fctClose() {
|
||||
setCoordinates(7);
|
||||
if (_num != 0) {
|
||||
int i;
|
||||
for (i = 1; (i <= 6) && (_num != _openObjects[i]); ++i)
|
||||
;
|
||||
if (_num == _openObjects[i]) {
|
||||
for (i = 1; i <= 6; ++i) {
|
||||
if (_num == _openObjects[i])
|
||||
break;
|
||||
}
|
||||
|
||||
if (i <= 6) {
|
||||
displayAnimFrame(2, _num);
|
||||
_crep = 998;
|
||||
_openObjects[i] = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user