1
0
Fork 0
forked from fte/fteqw

Cleared up some fs mode stuff.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1763 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-01-02 22:33:23 +00:00
parent 644de1850f
commit 39ad9338b9
2 changed files with 6 additions and 5 deletions

View file

@ -239,10 +239,10 @@ void SV_Fraglogfile_f (void)
for (i=0 ; i<1000 ; i++)
{
sprintf (name, "frag_%i.log", i);
sv_fraglogfile = FS_OpenVFS(name, "r", FS_GAME);
sv_fraglogfile = FS_OpenVFS(name, "rb", FS_GAME);
if (!sv_fraglogfile)
{ // can't read it, so create this one
sv_fraglogfile = FS_OpenVFS (name, "w", FS_GAME);
sv_fraglogfile = FS_OpenVFS (name, "wb", FS_GAME);
if (!sv_fraglogfile)
i=1000; // give error
break;

View file

@ -468,7 +468,8 @@ void SV_DropClient (client_t *drop)
#endif
if (svprogfuncs && drop->edict)
drop->edict->v->frags = 0;
drop->name[0] = 0;
drop->namebuf[0] = 0;
drop->name = drop->namebuf;
memset (drop->userinfo, 0, sizeof(drop->userinfo));
memset (drop->userinfobasic, 0, sizeof(drop->userinfobasic));
@ -2509,7 +2510,7 @@ void SV_WriteIP_f (void)
Con_Printf ("Writing %s.\n", name);
f = FS_OpenVFS(name, "wt", FS_GAME);
f = FS_OpenVFS(name, "wb", FS_GAME);
if (!f)
{
Con_Printf ("Couldn't open %s\n", name);
@ -2954,7 +2955,7 @@ void SV_MVDStream_Poll(void);
SV_MVDStream_Poll();
}
if (sv.state < ss_active)
if (sv.state < ss_active || !sv.worldmodel)
{
#ifndef SERVERONLY
// check for commands typed to the host