- Crafting fixed in 1.0.0
- Server compatible with the weapons and equip again. (Some Packets were incompatible) - fixed bucket bugs (not all) - Fixed clients getting crashed by wrong Pickups - fixed nearly all mob drops. (Check wheather they are burning is missing Big Grin) - maybe some other things I can´t recall atm Big Grin git-svn-id: http://mc-server.googlecode.com/svn/trunk@94 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -325,11 +325,7 @@ void cPlayer::Heal( int a_Health )
|
||||
{
|
||||
if( m_Health < 20 )
|
||||
{
|
||||
m_Health += (short)a_Health;
|
||||
if( m_Health > 20 )
|
||||
{
|
||||
m_Health = 20;
|
||||
}
|
||||
m_Health = MIN(a_Health + m_Health, 20);
|
||||
|
||||
cPacket_UpdateHealth Health;
|
||||
Health.m_Health = m_Health;
|
||||
@@ -344,7 +340,9 @@ void cPlayer::TakeDamage( int a_Damage, cEntity* a_Instigator )
|
||||
|
||||
cPacket_UpdateHealth Health;
|
||||
Health.m_Health = m_Health;
|
||||
m_ClientHandle->Send( Health );
|
||||
//TODO: Causes problems sometimes O.o (E.G. Disconnecting when attacked)
|
||||
if(m_ClientHandle != 0)
|
||||
m_ClientHandle->Send( Health );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user