about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-08-04 21:54:24 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-08-04 21:54:24 +0000
commit9b7900fa109cc4c23163bdb5cb945cc4172abe9d (patch)
tree1f05a32bf8c1ea43e1e32793dfb9ea6c7ec9738c /src/game/client
parent9c26231221afd0e19d40720812986dd63ba2ab36 (diff)
downloadzcatch-9b7900fa109cc4c23163bdb5cb945cc4172abe9d.tar.gz
zcatch-9b7900fa109cc4c23163bdb5cb945cc4172abe9d.zip
fixed project particles when connecting several times
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/game_client.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game/client/game_client.cpp b/src/game/client/game_client.cpp
index a59c9d97..64ab18f0 100644
--- a/src/game/client/game_client.cpp
+++ b/src/game/client/game_client.cpp
@@ -363,6 +363,11 @@ public:
 	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()