mp: Hide the Set Password option for local hotseat games (fixes bug #10784)

This commit is contained in:
Ignacio R. Morelle 2012-03-21 20:42:36 +00:00
parent dc8b0b18ee
commit 6653cb7e62
2 changed files with 8 additions and 2 deletions

View file

@ -73,6 +73,8 @@ Version 1.11.0-svn:
* Canceling the sides setup screen when hosting a MP game now brings the
host back to the game configuration screen first instead of returning
immediately to the lobby or (for hotseat) titlescreen (bug #7130)
* The Set Password action is no longer shown for local hotseat games
(bug #10784)
* Music and sound effects:
* Replaced some of the wolf hit sounds with lower-pitched ones
* Terrain:

View file

@ -735,8 +735,12 @@ void create::layout_children(const SDL_Rect& rect)
ypos += era_label_.height() + border_size;
era_combo_.set_location(xpos, ypos);
ypos += era_combo_.height() + border_size;
password_button_.set_location(xpos, ypos);
ypos += password_button_.height() + border_size;
if(!local_players_only_) {
password_button_.set_location(xpos, ypos);
ypos += password_button_.height() + border_size;
} else {
password_button_.hide(true);
}
#ifdef MP_VISION_OPTIONAL
vision_combo_.set_location(xpos, ypos);