mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +00:00
Grammar fix: Catched -> Caught
This commit is contained in:
parent
173b43d487
commit
708019c675
|
@ -9,7 +9,7 @@
|
||||||
#include "dragger.h"
|
#include "dragger.h"
|
||||||
|
|
||||||
CDragger::CDragger(CGameWorld *pGameWorld, vec2 Pos, float Strength, bool NW,
|
CDragger::CDragger(CGameWorld *pGameWorld, vec2 Pos, float Strength, bool NW,
|
||||||
int CatchedTeam, int Layer, int Number) :
|
int CaughtTeam, int Layer, int Number) :
|
||||||
CEntity(pGameWorld, CGameWorld::ENTTYPE_LASER)
|
CEntity(pGameWorld, CGameWorld::ENTTYPE_LASER)
|
||||||
{
|
{
|
||||||
m_Layer = Layer;
|
m_Layer = Layer;
|
||||||
|
@ -18,7 +18,7 @@ CDragger::CDragger(CGameWorld *pGameWorld, vec2 Pos, float Strength, bool NW,
|
||||||
m_Strength = Strength;
|
m_Strength = Strength;
|
||||||
m_EvalTick = Server()->Tick();
|
m_EvalTick = Server()->Tick();
|
||||||
m_NW = NW;
|
m_NW = NW;
|
||||||
m_CatchedTeam = CatchedTeam;
|
m_CaughtTeam = CaughtTeam;
|
||||||
GameWorld()->InsertEntity(this);
|
GameWorld()->InsertEntity(this);
|
||||||
|
|
||||||
for (int i = 0; i < MAX_CLIENTS; i++)
|
for (int i = 0; i < MAX_CLIENTS; i++)
|
||||||
|
@ -48,7 +48,7 @@ void CDragger::Move()
|
||||||
for (int i = 0; i < Num; i++)
|
for (int i = 0; i < Num; i++)
|
||||||
{
|
{
|
||||||
Temp = m_SoloEnts[i];
|
Temp = m_SoloEnts[i];
|
||||||
if (Temp->Team() != m_CatchedTeam)
|
if (Temp->Team() != m_CaughtTeam)
|
||||||
{
|
{
|
||||||
m_SoloEnts[i] = 0;
|
m_SoloEnts[i] = 0;
|
||||||
continue;
|
continue;
|
||||||
|
@ -259,7 +259,7 @@ void CDragger::Reset()
|
||||||
void CDragger::Tick()
|
void CDragger::Tick()
|
||||||
{
|
{
|
||||||
if (((CGameControllerDDRace*) GameServer()->m_pController)->m_Teams.GetTeamState(
|
if (((CGameControllerDDRace*) GameServer()->m_pController)->m_Teams.GetTeamState(
|
||||||
m_CatchedTeam) == CGameTeams::TEAMSTATE_EMPTY)
|
m_CaughtTeam) == CGameTeams::TEAMSTATE_EMPTY)
|
||||||
return;
|
return;
|
||||||
if (Server()->Tick() % int(Server()->TickSpeed() * 0.15f) == 0)
|
if (Server()->Tick() % int(Server()->TickSpeed() * 0.15f) == 0)
|
||||||
{
|
{
|
||||||
|
@ -282,7 +282,7 @@ void CDragger::Tick()
|
||||||
void CDragger::Snap(int SnappingClient)
|
void CDragger::Snap(int SnappingClient)
|
||||||
{
|
{
|
||||||
if (((CGameControllerDDRace*) GameServer()->m_pController)->m_Teams.GetTeamState(
|
if (((CGameControllerDDRace*) GameServer()->m_pController)->m_Teams.GetTeamState(
|
||||||
m_CatchedTeam) == CGameTeams::TEAMSTATE_EMPTY)
|
m_CaughtTeam) == CGameTeams::TEAMSTATE_EMPTY)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
CCharacter *Target = m_Target;
|
CCharacter *Target = m_Target;
|
||||||
|
@ -332,13 +332,13 @@ void CDragger::Snap(int SnappingClient)
|
||||||
continue;
|
continue;
|
||||||
if (Char && Char->IsAlive())
|
if (Char && Char->IsAlive())
|
||||||
{
|
{
|
||||||
if (Char->Team() != m_CatchedTeam)
|
if (Char->Team() != m_CaughtTeam)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// send to spectators only active draggers and some inactive from team 0
|
// send to spectators only active draggers and some inactive from team 0
|
||||||
if (!((Target && Target->IsAlive()) || m_CatchedTeam == 0))
|
if (!((Target && Target->IsAlive()) || m_CaughtTeam == 0))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,14 +14,14 @@ class CDragger: public CEntity
|
||||||
void Drag();
|
void Drag();
|
||||||
CCharacter * m_Target;
|
CCharacter * m_Target;
|
||||||
bool m_NW;
|
bool m_NW;
|
||||||
int m_CatchedTeam;
|
int m_CaughtTeam;
|
||||||
|
|
||||||
CCharacter * m_SoloEnts[MAX_CLIENTS];
|
CCharacter * m_SoloEnts[MAX_CLIENTS];
|
||||||
int m_SoloIDs[MAX_CLIENTS];
|
int m_SoloIDs[MAX_CLIENTS];
|
||||||
public:
|
public:
|
||||||
|
|
||||||
CDragger(CGameWorld *pGameWorld, vec2 Pos, float Strength, bool NW,
|
CDragger(CGameWorld *pGameWorld, vec2 Pos, float Strength, bool NW,
|
||||||
int CatchedTeam, int Layer = 0, int Number = 0);
|
int CaughtTeam, int Layer = 0, int Number = 0);
|
||||||
|
|
||||||
virtual void Reset();
|
virtual void Reset();
|
||||||
virtual void Tick();
|
virtual void Tick();
|
||||||
|
|
Loading…
Reference in a new issue