]> granicus.if.org Git - nethack/commit
unix player name handling (trunk only)
authornethack.rankin <nethack.rankin>
Sun, 13 Dec 2009 05:10:42 +0000 (05:10 +0000)
committernethack.rankin <nethack.rankin>
Sun, 13 Dec 2009 05:10:42 +0000 (05:10 +0000)
commit00093a1c8aab428a1f18258ded9bca807389a125
tree0324512d9ac9c0a297c83655d44c32a624296ef9
parent727bd80865a73a11e95858d923b857b9ca3f7fb0
unix player name handling (trunk only)

Fix a couple of post-3.4.3 bugs.  MacOSX was unconditionally copying
"player" into plname[] after processing options, clobbering any
name:Somebody value there.  (It took place before command line processing,
so -u Somebody worked ok.)  This removes that, since we're intending to
accomplish the same thing in a different manner.

The revised handling for names "player" and "games" didn't work right when
dash and role were appended to the name in order to try to keep dashes in
usernames intact.  It resulted in first prompting for role selection, then
asking "who are you?" afterwards.

Unfixed bug:  unixmain's appending dash and role to username in order to
preserve usernames with dashes in them doesn't work anymore.  I think the
role/race/gender/alignment stuff introduced way back in 3.3.0 broke it and
apparently no one has noticed....

Miscellaneous:  clean up some complaints from gcc about comparing signed
and unsigned ints.
sys/unix/unixmain.c