fixed warnings

This commit is contained in:
GreYFoXGTi 2011-01-06 14:13:49 +02:00
parent af160c8401
commit 21994e017f
2 changed files with 3 additions and 1 deletions

View file

@ -265,7 +265,7 @@ bool IGameController::OnEntity(int Index, vec2 Pos, int Layer, int Flags, int Nu
sides2[6]=GameServer()->Collision()->Entity(x-2,y, Layer);
sides2[7]=GameServer()->Collision()->Entity(x-2,y+2, Layer);
float AngularSpeed;
float AngularSpeed = 0.0;
int Ind=Index-ENTITY_LASER_STOP;
int M;
if (Ind<0)

View file

@ -130,11 +130,13 @@ bool CGameTeams::SetCharacterTeam(int id, int Team)
if(Team == TEAM_SUPER && !Character(id)->m_Super) return false;
//if you begin race
if(Character(id)->m_DDRaceState != DDRACE_NONE)
{
//you will be killed if you try to join FLOCK
if(Team == TEAM_FLOCK && m_Core.Team(id) != TEAM_FLOCK)
Character(id)->GetPlayer()->KillCharacter(WEAPON_GAME);
else if(Team != TEAM_SUPER)
return false;
}
SetForceCharacterTeam(id, Team);