fixed project particles when connecting several times

This commit is contained in:
Magnus Auvinen 2007-08-04 21:54:24 +00:00
parent 9c26231221
commit 9b7900fa10

View file

@ -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()