mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix draggers
This commit is contained in:
parent
9f3df78cae
commit
b425495f45
|
@ -7,6 +7,7 @@
|
|||
#include <game/server/teams.h>
|
||||
#include <game/server/gamemodes/DDRace.h>
|
||||
#include "dragger.h"
|
||||
#include <iostream>
|
||||
|
||||
CDragger::CDragger(CGameWorld *pGameWorld, vec2 Pos, float Strength, bool NW,
|
||||
int CaughtTeam, int Layer, int Number) :
|
||||
|
@ -390,16 +391,18 @@ void CDragger::Snap(int SnappingClient)
|
|||
CDraggerTeam::CDraggerTeam(CGameWorld *pGameWorld, vec2 Pos, float Strength,
|
||||
bool NW, int Layer, int Number)
|
||||
{
|
||||
std::cout << "CREATING" << std::endl;
|
||||
for (int i = 0; i < MAX_CLIENTS; ++i)
|
||||
{
|
||||
m_Draggers[i] = new CDragger(pGameWorld, Pos, Strength, NW, i, Layer, Number);
|
||||
}
|
||||
}
|
||||
|
||||
CDraggerTeam::~CDraggerTeam()
|
||||
{
|
||||
for (int i = 0; i < MAX_CLIENTS; ++i)
|
||||
{
|
||||
delete m_Draggers[i];
|
||||
}
|
||||
}
|
||||
//CDraggerTeam::~CDraggerTeam()
|
||||
//{
|
||||
// std::cout << "DELETING" << std::endl;
|
||||
// for (int i = 0; i < MAX_CLIENTS; ++i)
|
||||
// {
|
||||
// delete m_Draggers[i];
|
||||
// }
|
||||
//}
|
||||
|
|
|
@ -36,7 +36,7 @@ public:
|
|||
|
||||
CDraggerTeam(CGameWorld *pGameWorld, vec2 Pos, float Strength, bool NW =
|
||||
false, int Layer = 0, int Number = 0);
|
||||
~CDraggerTeam();
|
||||
//~CDraggerTeam();
|
||||
};
|
||||
|
||||
#endif // GAME_SERVER_ENTITIES_DRAGGER_H
|
||||
|
|
Loading…
Reference in a new issue