mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed project particles when connecting several times
This commit is contained in:
parent
9c26231221
commit
9b7900fa10
|
@ -362,6 +362,11 @@ public:
|
|||
// meh, just use size %
|
||||
int lastadd[LISTSIZE];
|
||||
projectile_particles()
|
||||
{
|
||||
reset();
|
||||
}
|
||||
|
||||
void reset()
|
||||
{
|
||||
for (int i = 0; i < LISTSIZE; i++)
|
||||
lastadd[i] = -1000;
|
||||
|
@ -456,6 +461,8 @@ void modc_entergame()
|
|||
tilemap_init();
|
||||
chat_reset();
|
||||
|
||||
proj_particles.reset();
|
||||
|
||||
for(int i = 0; i < MAX_CLIENTS; i++)
|
||||
{
|
||||
client_datas[i].name[0] = 0;
|
||||
|
@ -464,7 +471,6 @@ void modc_entergame()
|
|||
|
||||
for(int i = 0; i < killmsg_max; i++)
|
||||
killmsgs[i].tick = -100000;
|
||||
|
||||
}
|
||||
|
||||
void modc_shutdown()
|
||||
|
|
Loading…
Reference in a new issue