Windows: don't revert -D on command line
Reported by @youbo0 in GitHub issue #1616 This issue text stated: "To enter wizard mode, I have a shortcut with -D -u wizard as suggested by the wiki for Windows players. However, the name is now overridden by a name in .nethackrc since 5.0, resulting in me not actually entering wizard mode due to having the wrong name despite using -u wizard. In the previous version, -u wizard was applying properly regardless." Closes #1616
This commit is contained in:
@@ -399,8 +399,6 @@ _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/
|
||||
setting of renameallowed; when False, player_selection()
|
||||
won't resent renaming as an option */
|
||||
iflags.renameallowed = FALSE;
|
||||
/* Obtain the name of the logged on user and incorporate
|
||||
* it into the name. */
|
||||
Sprintf(fnamebuf, "%s", svp.plname);
|
||||
(void) fname_encode(
|
||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_-.", '%',
|
||||
|
||||
Reference in New Issue
Block a user