Properly check for soccer team of players
This commit is contained in:
parent
2b4d062911
commit
0e1a5ea285
@ -714,11 +714,11 @@ void Track::loadArenaGraph(const XMLNode &node)
|
|||||||
// Only need to test local player
|
// Only need to test local player
|
||||||
if (race_manager->getMinorMode() == RaceManager::MINOR_MODE_SOCCER)
|
if (race_manager->getMinorMode() == RaceManager::MINOR_MODE_SOCCER)
|
||||||
{
|
{
|
||||||
for (unsigned i = 0; i < race_manager->getNumberOfKarts(); i++)
|
const unsigned pk = race_manager->getNumPlayers();
|
||||||
|
for (unsigned i = 0; i < pk; i++)
|
||||||
{
|
{
|
||||||
if (race_manager->getKartType(i) != RaceManager::KT_PLAYER)
|
if (!race_manager->getKartInfo(i).isNetworkPlayer() &&
|
||||||
continue;
|
race_manager->getKartInfo(i).getSoccerTeam() ==
|
||||||
if (race_manager->getKartInfo(i).getSoccerTeam() ==
|
|
||||||
SOCCER_TEAM_BLUE)
|
SOCCER_TEAM_BLUE)
|
||||||
m_minimap_invert_x_z = true;
|
m_minimap_invert_x_z = true;
|
||||||
break;
|
break;
|
||||||
@ -1763,6 +1763,7 @@ void Track::loadTrackModel(bool reverse_track, unsigned int mode_id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
CameraEnd::clearEndCameras();
|
CameraEnd::clearEndCameras();
|
||||||
|
m_minimap_invert_x_z = false;
|
||||||
m_sky_type = SKY_NONE;
|
m_sky_type = SKY_NONE;
|
||||||
m_track_object_manager = new TrackObjectManager();
|
m_track_object_manager = new TrackObjectManager();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user