Surrounding ~g_KBMInput~ with #ifdef _WINDOWS64 / #endif

This commit is contained in:
acth2 2026-03-07 01:19:56 +01:00
parent e818da701a
commit 5a4608df10

View file

@ -1858,7 +1858,9 @@ Player::BedSleepingResult Player::startSleepInBed(int x, int y, int z, bool bTes
setPos(x + .5f, y + 15.0f / 16.0f, z + .5f);
}
m_isSleeping = true;
#ifdef _WINDOWS64
g_KBMInput.SetActiveMouse(false);
#endif
sleepCounter = 0;
bedPosition = new Pos(x, y, z);
@ -1930,7 +1932,9 @@ void Player::stopSleepInBed(bool forcefulWakeUp, bool updateLevelList, bool save
}
m_isSleeping = false;
#ifdef _WINDOWS64
g_KBMInput.SetActiveMouse(true);
#endif
if (!level->isClientSide && updateLevelList)
{