mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-04 19:36:43 +03:00
* Fix bad picking logic.
This commit is contained in:
@@ -115,8 +115,6 @@ void GameRenderer::setupCamera(float f, int i)
|
||||
moveCameraToPlayer(f);
|
||||
}
|
||||
|
||||
float x = 0, y = 0;
|
||||
|
||||
void GameRenderer::moveCameraToPlayer(float f)
|
||||
{
|
||||
Mob* pMob = m_pMinecraft->m_pMobPersp;
|
||||
@@ -792,11 +790,7 @@ void GameRenderer::pick(float f)
|
||||
// picked entities take priority over tiles (?!)
|
||||
if (field_10)
|
||||
{
|
||||
if (!m_pMinecraft->m_pGameMode->isCreativeType())
|
||||
{
|
||||
m_pMinecraft->m_hitResult = HitResult(field_10);
|
||||
}
|
||||
|
||||
m_pMinecraft->m_hitResult = HitResult(field_10);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
<ClInclude Include="..\source\client\gui\screens\ConfirmScreen.hpp" />
|
||||
<ClInclude Include="..\source\client\gui\screens\CreateWorldScreen.hpp" />
|
||||
<ClInclude Include="..\source\client\gui\screens\DeleteWorldScreen.hpp" />
|
||||
<ClInclude Include="..\source\client\gui\screens\DirectConnectScreen.hpp" />
|
||||
<ClInclude Include="..\source\client\gui\screens\DirectConnectScreen.hpp" />
|
||||
<ClInclude Include="..\source\client\gui\screens\IngameBlockSelectionScreen.hpp" />
|
||||
<ClInclude Include="..\source\client\gui\screens\InvalidLicenseScreen.hpp" />
|
||||
<ClInclude Include="..\source\client\gui\screens\JoinGameScreen.hpp" />
|
||||
|
||||
Reference in New Issue
Block a user