Set DeviceManager assign more to ASSIGN in network kart selection

Because input manager use this to determine backspace functionality
(for rescue in game or leave a screen)

This will be reset to NO_ASSIGN when you go back to main menu screen
This commit is contained in:
Benau
2018-01-29 14:50:29 +08:00
parent 6bcee60a1c
commit 9ebcdc5af3

View File

@@ -23,6 +23,7 @@
#include "config/user_config.hpp"
#include "graphics/irr_driver.hpp"
#include "guiengine/widgets/player_kart_widget.hpp"
#include "input/device_manager.hpp"
#include "items/item_manager.hpp"
#include "karts/kart_properties.hpp"
#include "karts/kart_properties_manager.hpp"
@@ -157,6 +158,7 @@ void NetworkKartSelectionScreen::playerConfirm(const int playerID)
clrp->requestKartSelection(players[i]->getGlobalPlayerId(),
selection );
}
input_manager->getDeviceManager()->setAssignMode(ASSIGN);
}
} // playerConfirm