Fixed poisoned needles not stacking correctly. Allow character names to end with digits on multiuser systems.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@628 c06c8d41-db1a-0410-9941-cceddc491573
5OVWAD2MGK2NT6Q546KW7HZHELVDBBRC2CQX6VZMZF2YVRC7CPVAC
2NCKGJDDPPGP2NXYYPEPVRJIIWEP6M7HE6WYMQN3UNNN3C2JIRFQC
RGWUYJO74FDGTH22CYSHBKFDGJ4S76WTLIULKPXA4QT5ZCNOB4LQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
RM4LRL6W56XHFWFZIA6LQLR6TPAHVSSXBVCNYZJIZSBPKFWDAJJQC
SDLKLUNFGVKDS55DDJZCBAVIB7NL3RRYPTACAY65SCUQKV6APFSAC
while (ask_name = !is_good_name(you.your_name, blankOK));
} // end enterPlayerName()
while (ask_name = !is_good_name(you.your_name, blankOK, true));
} // end enter_player_name()
// quick check for LPTx -- thank you, Mr. Tanksley! ;-)
if (strnicmp(you.your_name, "LPT", 3) == 0)
{
switch (william_tanksley_asked_for_this)
{
case 2:
cprintf(EOL "Hello, William! How is work on Omega going?" EOL);
break;
case 1:
cprintf(EOL "Look, it's just not a legal name." EOL);
break;
case 0:
strcpy(you.your_name, "William");
return (true);
} // end switch
william_tanksley_asked_for_this--;
return (false);
}
#ifdef MULTIUSER
// Until we have a better way to handle the fact that this could lead
// to some confusion with where the name ends and the uid begins. -- bwr
const size_t len = strlen( you.your_name );
if (isdigit( you.your_name[ len - 1 ] ))
{
cprintf( EOL "Sorry, your name cannot end with a digit." EOL );
return (false);
}
#endif