Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance: store current player location in map file on a per profile b…
…asis It is possible to copy a saved map from one profile to another - even if that other profile is in use. However this will lose the details of where the (other) player is located in THAT profile. This commit aims to correct that by sneaking a look at where the other player is and storing that in the file that is both copied for this profile before it is copied and to the file that is copied over. This data was stored in (int) TMap::mRoomId which has now become a: (QHash<QString, int>) TMap::mRoomIdHash with the profile name as the key and the Value being the equivalent of mRoomId in the new code. This has required an increment in the Map file format version from 17 to 18. The default - that will be used unless the developer or tester changes it in the Profile Preferences dialog remains at 16. Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
- Loading branch information
Showing
10 changed files
with
448 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.