Removed unused variable.

This commit is contained in:
hiker 2016-01-07 17:07:04 +11:00
parent a1b05dbb00
commit f5438c433c
4 changed files with 4 additions and 8 deletions

View File

@ -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

View File

@ -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;

View File

@ -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:

View File

@ -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: