1
0
Fork 0

Fixed bow damage in creative

Also reverted indenting change
This commit is contained in:
Tiger Wang 2013-11-02 16:01:40 +00:00
parent 96cd7d65a3
commit f38375a2ec
2 changed files with 6 additions and 2 deletions

View File

@ -318,7 +318,7 @@ void cPlayer::SetTouchGround(bool a_bTouchGround)
(BlockType == E_BLOCK_STATIONARY_WATER) ||
(BlockType == E_BLOCK_LADDER) ||
(BlockType == E_BLOCK_VINES)
)
)
{
m_LastGroundHeight = (float)GetPosY();
}

View File

@ -71,7 +71,11 @@ public:
return;
}
a_Player->GetWorld()->BroadcastSpawnEntity(*Arrow);
a_Player->UseEquippedItem();
if (!a_Player->IsGameModeCreative())
{
a_Player->UseEquippedItem();
}
}
} ;