Ninja sound was commented... i don't know why

Fixed last commit
This commit is contained in:
GreYFoXGTi 2010-09-29 23:54:02 +03:00
parent 65830a463d
commit 1a5b3f5a24
2 changed files with 2 additions and 2 deletions

View file

@ -1439,7 +1439,7 @@ void CServer::ConKick(IConsole::IResult *pResult, void *pUser, int ClientId)
{
int ClientId1 = pResult->GetInteger(0);
char buf[128];
if(ClientId1 < 0 || ClientId1 >= MAX_CLIENTS || m_aClients[ClientId1].m_State == CClient::STATE_EMPTY)
if(ClientId1 < 0 || ClientId1 >= MAX_CLIENTS || ((CServer *)pUser)->m_aClients[ClientId1].m_State == CClient::STATE_EMPTY)
{
str_format(buf, sizeof(buf),"Invalid Client ID %d", ClientId1);
((CServer *)pUser)->SendRconLine(ClientId,buf);

View file

@ -459,7 +459,7 @@ void CCharacter::FireWeapon()
m_Ninja.m_ActivationDir = Direction;
//m_Ninja.m_CurrentMoveTime = g_pData->m_Weapons.m_Ninja.m_Movetime * Server()->TickSpeed() / 1000;
m_Ninja.m_CurrentMoveTime = 10;
//GameServer()->CreateSound(m_Pos, SOUND_NINJA_FIRE);
GameServer()->CreateSound(m_Pos, SOUND_NINJA_FIRE,(!Team()?-1:Team()));
} break;
}