Removed unused variable.
This commit is contained in:
parent
a1b05dbb00
commit
f5438c433c
@ -51,8 +51,7 @@
|
||||
* \param player_index Index of the player kart.
|
||||
*/
|
||||
LocalPlayerController::LocalPlayerController(AbstractKart *kart,
|
||||
StateManager::ActivePlayer *player,
|
||||
unsigned int player_index)
|
||||
StateManager::ActivePlayer *player)
|
||||
: PlayerController(kart, player)
|
||||
{
|
||||
// Keep a pointer to the camera to remove the need to search for
|
||||
|
@ -53,8 +53,7 @@ private:
|
||||
virtual void displayPenaltyWarning() OVERRIDE;
|
||||
public:
|
||||
LocalPlayerController(AbstractKart *kart,
|
||||
StateManager::ActivePlayer *_player,
|
||||
unsigned int player_index);
|
||||
StateManager::ActivePlayer *player);
|
||||
~LocalPlayerController();
|
||||
void update (float) OVERRIDE;
|
||||
void action (PlayerAction action, int value) OVERRIDE;
|
||||
|
@ -410,8 +410,7 @@ AbstractKart *SoccerWorld::createKart(const std::string &kart_ident, int index,
|
||||
{
|
||||
case RaceManager::KT_PLAYER:
|
||||
controller = new LocalPlayerController(new_kart,
|
||||
StateManager::get()->getActivePlayer(local_player_id),
|
||||
local_player_id);
|
||||
StateManager::get()->getActivePlayer(local_player_id));
|
||||
m_num_players ++;
|
||||
break;
|
||||
case RaceManager::KT_NETWORK_PLAYER:
|
||||
|
@ -311,8 +311,7 @@ AbstractKart *World::createKart(const std::string &kart_ident, int index,
|
||||
{
|
||||
case RaceManager::KT_PLAYER:
|
||||
controller = new LocalPlayerController(new_kart,
|
||||
StateManager::get()->getActivePlayer(local_player_id),
|
||||
local_player_id);
|
||||
StateManager::get()->getActivePlayer(local_player_id));
|
||||
m_num_players ++;
|
||||
break;
|
||||
case RaceManager::KT_NETWORK_PLAYER:
|
||||
|
Loading…
Reference in New Issue
Block a user