mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed warnings
This commit is contained in:
parent
af160c8401
commit
21994e017f
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue