From e1d165b9426968bcf7ab45a210e566343e4d89c8 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Fri, 18 Jun 2010 19:47:24 +0000 Subject: [PATCH] Einige Kommentare wieder ein (by caedes) --- src/client/cl_effects.c | 3 +++ src/client/cl_input.c | 4 ++++ src/client/cl_network.c | 4 ++-- src/client/cl_parse.c | 6 ++++++ 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/client/cl_effects.c b/src/client/cl_effects.c index 67a5212f..4c22f9b0 100644 --- a/src/client/cl_effects.c +++ b/src/client/cl_effects.c @@ -866,6 +866,9 @@ void CL_BigTeleportParticles (vec3_t org) { } } +/* + * Wall impact puffs + */ void CL_BlasterParticles (vec3_t org, vec3_t dir) { int i, j; cparticle_t *p; diff --git a/src/client/cl_input.c b/src/client/cl_input.c index a28c4483..59de4e07 100644 --- a/src/client/cl_input.c +++ b/src/client/cl_input.c @@ -245,6 +245,10 @@ void IN_Impulse (void) { in_impulse=atoi(Cmd_Argv(1)); } +/* + * Returns the fraction of the frame that + * the key was down + */ float CL_KeyState (kbutton_t *key) { float val; int msec; diff --git a/src/client/cl_network.c b/src/client/cl_network.c index 3ec9217d..9ca0a123 100644 --- a/src/client/cl_network.c +++ b/src/client/cl_network.c @@ -497,7 +497,7 @@ void CL_ConnectionlessPacket (void) char *c; MSG_BeginReading (&net_message); - MSG_ReadLong (&net_message); + MSG_ReadLong (&net_message); // skip the -1 s = MSG_ReadStringLine (&net_message); @@ -610,7 +610,7 @@ void CL_ReadPackets (void) } if (!Netchan_Process(&cls.netchan, &net_message)) - continue; + continue; /* wasn't accepted for some reason */ CL_ParseServerMessage (); } diff --git a/src/client/cl_parse.c b/src/client/cl_parse.c index 0becc5fe..65bc483f 100644 --- a/src/client/cl_parse.c +++ b/src/client/cl_parse.c @@ -73,6 +73,9 @@ void CL_RegisterSounds (void) { S_EndRegistration (); } +/* + * Returns the entity number and the header bits + */ int CL_ParseEntityBits (unsigned *bits) { unsigned b, total; int i; @@ -111,6 +114,9 @@ int CL_ParseEntityBits (unsigned *bits) { return number; } +/* + * Can go from either a baseline or a previous packet_entity + */ void CL_ParseDelta (entity_state_t *from, entity_state_t *to, int number, int bits) { /* set everything to the state we are delta'ing from */ *to = *from;