Skip to content

Commit

Permalink
Try to make the password box more idiot proof.
Browse files Browse the repository at this point in the history
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11492 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit 41b6578)
  • Loading branch information
buginator committed Oct 19, 2010
1 parent ccd5555 commit bc24cd6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/multiint.c
Expand Up @@ -2305,15 +2305,17 @@ static void processMultiopWidgets(UDWORD id)
{
sstrcpy(game_password, widgGetString(psWScreen, MULTIOP_PASSWORD_EDIT));
NETsetGamePassword(game_password);
widgSetButtonState(psWScreen, MULTIOP_PASSWORD_BUT, WBUT_CLICKLOCK);
widgSetButtonState(psWScreen, MULTIOP_PASSWORD_BUT, WBUT_CLICKLOCK);
widgSetButtonState(psWScreen, MULTIOP_PASSWORD_EDIT, WEDBS_DISABLE);
// say password is now required to join games?
ssprintf(buf, _("*** password is now required! ***"));
ssprintf(buf, _("*** password [%s] is now required! ***"), NetPlay.gamePassword);
addConsoleMessage(buf, DEFAULT_JUSTIFY, NOTIFY_MESSAGE);
NETGameLocked(true);
}
else
{
widgSetButtonState(psWScreen, MULTIOP_PASSWORD_BUT , 0);
widgSetButtonState(psWScreen, MULTIOP_PASSWORD_EDIT, 0);
ssprintf(buf, _("*** password is NOT required! ***"));
addConsoleMessage(buf, DEFAULT_JUSTIFY, NOTIFY_MESSAGE);
NETresetGamePassword();
Expand Down

0 comments on commit bc24cd6

Please sign in to comment.