mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-27 04:55:34 +00:00
refactor: type the IGameServices payload as a variant instead of void*
This commit is contained in:
@@ -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