Allow showing online addon kart as tux when live join is on
This commit is contained in:
parent
40c3f1a290
commit
bdbf961e76
@ -480,6 +480,9 @@ namespace UserConfigParams
|
|||||||
PARAM_PREFIX BoolUserConfigParam m_soccer_player_list
|
PARAM_PREFIX BoolUserConfigParam m_soccer_player_list
|
||||||
PARAM_DEFAULT( BoolUserConfigParam(false, "soccer-player-list",
|
PARAM_DEFAULT( BoolUserConfigParam(false, "soccer-player-list",
|
||||||
&m_race_setup_group, "Show player list icon in soccer mode.") );
|
&m_race_setup_group, "Show player list icon in soccer mode.") );
|
||||||
|
PARAM_PREFIX BoolUserConfigParam m_addon_tux_online
|
||||||
|
PARAM_DEFAULT( BoolUserConfigParam(false, "addon-tux-online",
|
||||||
|
&m_race_setup_group, "Always show online addon karts as tux when live join is on.") );
|
||||||
|
|
||||||
// ---- Wiimote data
|
// ---- Wiimote data
|
||||||
PARAM_PREFIX GroupUserConfigParam m_wiimote_group
|
PARAM_PREFIX GroupUserConfigParam m_wiimote_group
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
#include "karts/abstract_kart.hpp"
|
#include "karts/abstract_kart.hpp"
|
||||||
|
|
||||||
|
#include "config/user_config.hpp"
|
||||||
#include "items/attachment.hpp"
|
#include "items/attachment.hpp"
|
||||||
#include "items/powerup.hpp"
|
#include "items/powerup.hpp"
|
||||||
#include "karts/abstract_kart_animation.hpp"
|
#include "karts/abstract_kart_animation.hpp"
|
||||||
@ -85,7 +86,8 @@ void AbstractKart::loadKartProperties(const std::string& new_ident,
|
|||||||
{
|
{
|
||||||
// For addon kart in network we use the same hitbox (tux) so anyone
|
// For addon kart in network we use the same hitbox (tux) so anyone
|
||||||
// can use any addon karts with different graphical kart model
|
// can use any addon karts with different graphical kart model
|
||||||
kp_addon = kp;
|
if (!UserConfigParams::m_addon_tux_online)
|
||||||
|
kp_addon = kp;
|
||||||
kp = kart_properties_manager->getKart(std::string("tux"));
|
kp = kart_properties_manager->getKart(std::string("tux"));
|
||||||
}
|
}
|
||||||
if (kp == NULL)
|
if (kp == NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user