diff options
author | David Fioramonti | 2017-08-18 20:18:27 -0700 |
---|---|---|
committer | David Fioramonti | 2017-08-18 20:28:16 -0700 |
commit | 82d0053f8bd472ec598645550825257ddd78d683 (patch) | |
tree | 01a08f13a73f6a7593135a40af86004f8756dedb /engines/sherlock | |
parent | b200317306370e25fb9cb0b3fbefbb5c7b538773 (diff) | |
download | scummvm-rg350-82d0053f8bd472ec598645550825257ddd78d683.tar.gz scummvm-rg350-82d0053f8bd472ec598645550825257ddd78d683.tar.bz2 scummvm-rg350-82d0053f8bd472ec598645550825257ddd78d683.zip |
TITANIC: Add logic to prevent removing locked/marked stars via skymap
If you want to remove locked stars you can do so using the D key,
but previously, you could also deselect a currently locked star
via the skymap and it would crash.
It previously crashed if:
1. You had 2 stars locked on and you tried to remove the 1st
2. Had 1 locked and 1 unlocked and you tried to unlock the 1st
3. Had 2 locked and 1 unlocked and you tried to unlock any of
the other two locked stars.
Refactoring would allow quicker comprehension of the logic of
this section of code.
Fixes #10126.
Diffstat (limited to 'engines/sherlock')
0 files changed, 0 insertions, 0 deletions