Make the wesnothd startable from the game on a Mac (patch by anakayub).
This commit is contained in:
parent
d59458c92d
commit
bc82840283
1 changed files with 1 additions and 9 deletions
10
src/game.cpp
10
src/game.cpp
|
@ -1768,11 +1768,9 @@ bool game_controller::play_multiplayer()
|
|||
host_or_join.push_back(pre + "serverother.png"
|
||||
+ sep1 + _("Connect to Server")
|
||||
+ sep2 + _("Join a different server"));
|
||||
#ifndef __APPLE__
|
||||
host_or_join.push_back(pre + "hostgame.png"
|
||||
+ sep1 + _("Host Networked Game")
|
||||
+ sep2 + _("Host a game using dedicated server 'wesnothd'"));
|
||||
#endif
|
||||
host_or_join.push_back(pre + "hotseat.png"
|
||||
+ sep1 + _("Local Game")
|
||||
+ sep2 + _("Play a multiplayer game with the AI or humans sharing the same machine"));
|
||||
|
@ -1786,13 +1784,7 @@ bool game_controller::play_multiplayer()
|
|||
d.set_menu(host_or_join);
|
||||
d.set_textbox(_("Login: "), login, mp::max_login_size, font::relative_size(250));
|
||||
res = d.show();
|
||||
#ifdef __APPLE__
|
||||
// hack to make hotseat to have res number 3 in mac
|
||||
if (res == 2)
|
||||
{
|
||||
res = 3;
|
||||
}
|
||||
#endif
|
||||
|
||||
login = d.textbox_text();
|
||||
if (res == 2 && preferences::mp_server_warning_disabled() < 2)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue