don't allow choosing battle mode in single-player mode (it looks a bit weird, disabled buttons are not displayed any different from enabled buttons??)

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2360 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2008-10-21 00:29:29 +00:00
parent 3c59ef640d
commit bc842b38ab

View File

@ -84,6 +84,12 @@ GameMode::GameMode()
w_prev=w;
widget_manager->sameWidth(WTOK_TITLE_SINGLE, WTOK_3_STRIKES_SINGLE);
// don't activate battle mode in single-player mode
if(race_manager->getNumLocalPlayers()==1)
widget_manager->deactivateWgt(WTOK_3_STRIKES_SINGLE);
else
widget_manager->activateWgt(WTOK_3_STRIKES_SINGLE);
// Then the GPs
// ============
w=widget_manager->addTextWgt(WTOK_TITLE_GP, WIDTH,