summaryrefslogtreecommitdiff
path: root/source/sv_mvd.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-10-25 16:43:39 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-10-25 16:43:39 +0000
commit8a4e5f5516e94fe901a332bce7eef9b824f225c6 (patch)
tree93d64ca93047c6b1c1b59658e950ab0062544fe9 /source/sv_mvd.c
parentb7d3939f3f68617f80d74d0a2bf6ea34ddea1065 (diff)
Progress meter now works for local MVDs again.
Implemented `mvdskip' command which allows one jump to the next map in a MVD. Removed `mvd_shownet' debugging stuff from dedicated server build. Dropped packets no longer have maximum height on the lagometer.
Diffstat (limited to 'source/sv_mvd.c')
-rw-r--r--source/sv_mvd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/sv_mvd.c b/source/sv_mvd.c
index 35f88c5..01bd7a9 100644
--- a/source/sv_mvd.c
+++ b/source/sv_mvd.c
@@ -23,6 +23,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
#include "sv_local.h"
+#include "q_fifo.h"
+#include "net_stream.h"
#include "mvd_gtv.h"
#define FOR_EACH_GTV( client ) \
@@ -948,7 +950,7 @@ void SV_MvdEndFrame( void ) {
FS_Write( mvd.datagram.data, mvd.datagram.cursize, mvd.recording );
if( sv_mvd_maxsize->value > 0 ) {
- int numbytes = FS_RawTell( mvd.recording );
+ int numbytes = FS_Tell( mvd.recording );
if( numbytes > sv_mvd_maxsize->value * 1000 ) {
Com_Printf( "Stopping MVD recording, maximum size reached.\n" );