diff -ur ScummVM-cvs20020814/scummvm/simon/simon.cpp ScummVM-cvs20020814+hack/scummvm/simon/simon.cpp
old
|
new
|
|
3114 | 3114 | if (!(h > 0 && w > 0 && ha->x + w <= 320 && ha->y + h <= 200)) { |
3115 | 3115 | warning("Invalid coordinates in video_toggle_colors (%d,%d,%d,%d)", ha->x, ha->y, ha->width, |
3116 | 3116 | ha->height); |
| 3117 | _lock_word &= ~0x8000; |
3117 | 3118 | return; |
3118 | 3119 | } |
3119 | 3120 | |
… |
… |
|
4357 | 4358 | #endif |
4358 | 4359 | |
4359 | 4360 | f = fopen(gen_savename(slot), "wb"); |
4360 | | if (f == NULL) |
| 4361 | if (f == NULL) { |
| 4362 | _lock_word &= ~0x100; |
4361 | 4363 | return false; |
| 4364 | } |
4362 | 4365 | |
4363 | 4366 | fwrite(caption, 1, 0x12, f); |
4364 | 4367 | |
… |
… |
|
4472 | 4475 | #endif |
4473 | 4476 | |
4474 | 4477 | f = fopen(gen_savename(slot), "rb"); |
4475 | | if (f == NULL) |
| 4478 | if (f == NULL) { |
| 4479 | _lock_word &= ~0x100; |
4476 | 4480 | return false; |
| 4481 | } |
4477 | 4482 | |
4478 | 4483 | fread(ident, 1, 18, f); |
4479 | 4484 | |
… |
… |
|
4481 | 4486 | |
4482 | 4487 | if (fileReadBE32(f) != 0xFFFFFFFF || num != _itemarray_inited - 1) { |
4483 | 4488 | fclose(f); |
| 4489 | _lock_word &= ~0x100; |
4484 | 4490 | return false; |
4485 | 4491 | } |
4486 | 4492 | |