Removed unnecessary code.
This commit is contained in:
parent
0f52f0bdd9
commit
03d857db3e
@ -183,28 +183,6 @@ void NetworkKartSelectionScreen::playerSelected(uint8_t race_id,
|
||||
m_kart_widgets[widget_id].markAsReady(); // mark player ready
|
||||
} // playerSelected
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
/**
|
||||
* Callback handling events from the kart selection menu
|
||||
*/
|
||||
void NetworkKartSelectionScreen::eventCallback(GUIEngine::Widget* widget,
|
||||
const std::string& name,
|
||||
const int playerID)
|
||||
{
|
||||
if (name == "karts")
|
||||
{
|
||||
KartSelectionScreen::eventCallback(widget, name, playerID);
|
||||
}
|
||||
else if (name == "back")
|
||||
{
|
||||
KartSelectionScreen::eventCallback(widget, name, playerID);
|
||||
}
|
||||
else // name != karts
|
||||
{
|
||||
KartSelectionScreen::eventCallback(widget, name, playerID);
|
||||
}
|
||||
} // eventCallback
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
bool NetworkKartSelectionScreen::onEscapePressed()
|
||||
{
|
||||
|
@ -36,12 +36,7 @@ protected:
|
||||
void considerKartHovered(uint8_t widget_id, std::string selection);
|
||||
public:
|
||||
virtual void init() OVERRIDE;
|
||||
virtual void eventCallback(GUIEngine::Widget* widget,
|
||||
const std::string& name,
|
||||
const int playerID) OVERRIDE;
|
||||
|
||||
virtual bool onEscapePressed() OVERRIDE;
|
||||
|
||||
virtual void playerSelected(uint8_t race_id, const std::string &kart_name);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user