don't call the packet acker when running a demo

This commit is contained in:
Bill Currie 2001-09-07 03:49:30 +00:00
parent 3a9191760f
commit 3b5969df1e
3 changed files with 7 additions and 7 deletions

View file

@ -268,7 +268,8 @@ Model_NextDownload (void)
return; // started a download
}
Netchan_AckPacket (&cls.netchan);
if (!cls.demoplayback)
Netchan_AckPacket (&cls.netchan);
for (i = 1; i < MAX_MODELS; i++) {
char *info_key = 0;
@ -350,7 +351,8 @@ Sound_NextDownload (void)
return; // started a download
}
Netchan_AckPacket (&cls.netchan);
if (!cls.demoplayback)
Netchan_AckPacket (&cls.netchan);
for (i = 1; i < MAX_SOUNDS; i++) {
if (!cl.sound_name[i][0])

View file

@ -80,7 +80,8 @@ Skin_NextDownload (void)
return; // started a download
}
Netchan_AckPacket (&cls.netchan);
if (!cls.demoplayback)
Netchan_AckPacket (&cls.netchan);
cls.downloadtype = dl_none;

View file

@ -534,9 +534,7 @@ PM_AirMove (void)
// add gravity
pmove.velocity[2] -= movevars.entgravity * movevars.gravity *
frametime;
#if 0
PM_FlyMove ();
#else
if (!PM_FlyMove ()) {
// the move didn't get blocked
PM_CategorizePosition ();
@ -554,7 +552,6 @@ PM_AirMove (void)
VectorCopy (original, pmove.origin);
}
}
#endif
}
}