From 9b7900fa109cc4c23163bdb5cb945cc4172abe9d Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sat, 4 Aug 2007 21:54:24 +0000 Subject: [PATCH] fixed project particles when connecting several times --- src/game/client/game_client.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/game/client/game_client.cpp b/src/game/client/game_client.cpp index a59c9d97f..64ab18f00 100644 --- a/src/game/client/game_client.cpp +++ b/src/game/client/game_client.cpp @@ -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()