refactor: type the IGameServices payload as a variant instead of void*
This commit is contained in:
1 parent
8084ec7857
commit
52b4ccaea2
17 files changed
+141
-92
No files matched your search
@@ -34,7 +34,7 @@ void PauseScreen::init() {
|
||||
if (g_NetworkManager.IsLocalGame() &&
|
||||
g_NetworkManager.GetPlayerCount() == 1)
|
||||
gameServices().setXuiServerAction(PlatformInput.GetPrimaryPad(),
|
||||
eXuiServerAction_PauseServer, (void*)true);
|
||||
eXuiServerAction_PauseServer, true);
|
||||
buttons.push_back(new Button(1, width / 2 - 100, height / 4 + 24 * 5 + yo,
|
||||
I18n::get("menu.returnToMenu")));
|
||||
if (!g_NetworkManager.IsHost()) {
|
||||
@@ -92,7 +92,7 @@ void PauseScreen::buttonClicked(Button* button) {
|
||||
}
|
||||
if (button->id == 4) {
|
||||
gameServices().setXuiServerAction(PlatformInput.GetPrimaryPad(),
|
||||
eXuiServerAction_PauseServer, (void*)false);
|
||||
eXuiServerAction_PauseServer, false);
|
||||
minecraft->setScreen(nullptr);
|
||||
// minecraft->grabMouse(); // 4J - removed
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user