disable network by default
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2608 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
1087b10ab0
commit
eaa9ceee1d
@ -34,7 +34,8 @@
|
||||
(zipper-speed-gain 4.5 ) ;; one time additional speed
|
||||
|
||||
(shortcut-length 120 ) ;; leaving the road and coming back on it more than
|
||||
;; 120 'meters" later is considered to be a shortcut
|
||||
;; x 'meters" later is considered to be a shortcut
|
||||
(enable_networking #f )
|
||||
(explosion-impulse 10000.0 ) ;; explosion impulse on not directly hit karts
|
||||
(explosion-impulse-objects 500.0) ;; explosion impulse for physics objects (smaller
|
||||
;; else a cone e.g. will be pushed way too far)
|
||||
|
@ -49,8 +49,8 @@ MainMenu::MainMenu()
|
||||
widget_manager->addTextButtonWgt( WTOK_SINGLE, WIDTH, 7, _("Single Player") );
|
||||
widget_manager->addTextButtonWgt( WTOK_MULTI, WIDTH, 7, _("Splitscreen") );
|
||||
|
||||
// Only display the networking entry when not already connected.
|
||||
if(network_manager->getMode()==NetworkManager::NW_NONE)
|
||||
// Only display the networking entry when not already connected (and networking is enabled)
|
||||
if(network_manager->getMode()==NetworkManager::NW_NONE && stk_config->m_enable_networking)
|
||||
widget_manager->addTextButtonWgt( WTOK_NETWORK, WIDTH, 7, _("Networking") );
|
||||
|
||||
std::vector<const Challenge*> all_challenges=unlock_manager->getActiveChallenges();
|
||||
|
@ -134,6 +134,7 @@ void STKConfig::init_defaults()
|
||||
m_max_history = -100;
|
||||
m_max_skidmarks = -100;
|
||||
m_title_music = NULL;
|
||||
m_enable_networking = true;
|
||||
m_game_style = GS_WHEELIE;
|
||||
m_scores.clear();
|
||||
m_leader_intervals.clear();
|
||||
@ -172,6 +173,7 @@ void STKConfig::getAllData(const lisp::Lisp* lisp)
|
||||
lisp->get("delay-finish-time", m_delay_finish_time );
|
||||
lisp->get("music-credit-time", m_music_credit_time );
|
||||
lisp->get("menu-background", m_menu_background );
|
||||
lisp->get("enable_networking", m_enable_networking );
|
||||
std::string title_music;
|
||||
lisp->get("title-music", title_music );
|
||||
m_title_music = new MusicInformation(file_manager->getMusicFile(title_music));
|
||||
|
@ -68,6 +68,9 @@ public:
|
||||
int m_max_history; /**<Maximum number of frames to save in
|
||||
a history files. */
|
||||
int m_max_skidmarks; /**<Maximum number of skid marks/kart. */
|
||||
|
||||
bool m_enable_networking;
|
||||
|
||||
/** Gaming style: in wheelie, karts can do wheelies, collected coins
|
||||
* increase the number of items you get. With nitro, collected coins
|
||||
* can be used as a speed boost (nitro), but no wheelies are possible.
|
||||
|
Loading…
x
Reference in New Issue
Block a user