Cleanup: clear deprecated UI flags

Also adds cursor-lock flag, to be used in next commit.
This commit is contained in:
2017-07-29 01:28:58 +10:00
parent 9b22dbcc0d
commit 2eb2655181
6 changed files with 86 additions and 55 deletions

View File

@@ -2758,6 +2758,24 @@ void init_userdef_do_versions(void)
}
}
if (!USER_VERSION_ATLEAST(278, 6)) {
/* Clear preference flags for re-use. */
U.flag &= ~(
(1 << 1) | (1 << 2) | (1 << 3) |
(1 << 6) | (1 << 7) |
(1 << 9) | (1 << 10));
U.uiflag &= ~(
(1 << 7));
U.transopts &= ~(
(1 << 2) | (1 << 3) | (1 << 4) |
(1 << 7));
U.gameflags &= ~(
(1 << 0) | (1 << 1) |
(1 << 3) | (1 << 4));
U.uiflag |= USER_LOCK_CURSOR_ADJUST;
}
/**
* Include next version bump.
*