Adjusted style of switch/case
This commit is contained in:
@@ -187,21 +187,11 @@ int cProtocol161::ParseEntityAction(void)
|
||||
|
||||
switch (ActionID)
|
||||
{
|
||||
case 1: // Crouch
|
||||
m_Client->HandleEntityCrouch(EntityID, true);
|
||||
break;
|
||||
case 2: // Uncrouch
|
||||
m_Client->HandleEntityCrouch(EntityID, false);
|
||||
break;
|
||||
case 3: // Leave Bed
|
||||
m_Client->HandleEntityLeaveBed(EntityID);
|
||||
break;
|
||||
case 4: // Start sprinting
|
||||
m_Client->HandleEntitySprinting(EntityID, true);
|
||||
break;
|
||||
case 5: // Stop sprinting
|
||||
m_Client->HandleEntitySprinting(EntityID, false);
|
||||
break;
|
||||
case 1: m_Client->HandleEntityCrouch(EntityID, true); break; // Crouch
|
||||
case 2: m_Client->HandleEntityCrouch(EntityID, false); break; // Uncrouch
|
||||
case 3: m_Client->HandleEntityLeaveBed(EntityID); break; // Leave Bed
|
||||
case 4: m_Client->HandleEntitySprinting(EntityID, true); break; // Start sprinting
|
||||
case 5: m_Client->HandleEntitySprinting(EntityID, false); break; // Stop sprinting
|
||||
}
|
||||
|
||||
return PARSE_OK;
|
||||
|
||||
Reference in New Issue
Block a user