diff --git a/include/netchan.h b/include/netchan.h index 218727a2c..8becf9389 100644 --- a/include/netchan.h +++ b/include/netchan.h @@ -75,6 +75,7 @@ qboolean NET_IsClientLegal(netadr_t *adr); int Net_Log_Init (const char **sound_precache); +void Net_LogPrintf (const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); void Log_Incoming_Packet (const char *p, int len, int has_sequence); void Log_Outgoing_Packet (const char *p, int len, int has_sequence); void Net_LogStop (void); diff --git a/qw/source/net_packetlog.c b/qw/source/net_packetlog.c index 155340a54..2f373f5b7 100644 --- a/qw/source/net_packetlog.c +++ b/qw/source/net_packetlog.c @@ -168,8 +168,6 @@ static const char **Net_sound_precache; static sizebuf_t _packet; static qmsg_t packet = {0, 0, &_packet}; -static void Net_LogPrintf (const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); - static int Net_LogStart (const char *fname) { @@ -965,7 +963,7 @@ Net_Log_Init (const char **sound_precache) Prints packet to logfile, adds time stamp etc. */ -static void +void Net_LogPrintf (const char *fmt, ...) { char text[2048]; diff --git a/qw/source/sv_recorder.c b/qw/source/sv_recorder.c index 65240affd..c22e23467 100644 --- a/qw/source/sv_recorder.c +++ b/qw/source/sv_recorder.c @@ -430,8 +430,6 @@ write_datagram (recorder_t *r) write_msg (&msg, dem_all, 0, time, &dst); r->write (r->user, &dst, 0); } - - rec.frames[rec.parsecount & DEMO_FRAMES_MASK].time = rec.time = sv.time; } static void @@ -591,6 +589,8 @@ SV_SendDemoMessage (void) } } + rec.frames[rec.parsecount & DEMO_FRAMES_MASK].time = rec.time = sv.time; + write_packet (); // send over all the objects that are in the PVS // this will include clients, a packetentities, and