removed obsolete FS_Close call in LoadGame
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 25 Jan 2005 20:11:06 +0000 (20:11 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 25 Jan 2005 20:11:06 +0000 (20:11 +0000)
fixed two int -> unsigned char conversion warnings

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4964 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c
pr_cmds.c
prvm_cmds.c

index 808cee3..995e61b 100644 (file)
@@ -542,7 +542,6 @@ Host_Loadgame_f
 */
 void Host_Loadgame_f (void)
 {
-       qfile_t *f;
        char filename[MAX_QPATH];
        char mapname[MAX_QPATH];
        float time;
@@ -685,8 +684,6 @@ void Host_Loadgame_f (void)
        sv.num_edicts = entnum;
        sv.time = time;
 
-       FS_Close (f);
-
        for (i = 0;i < NUM_SPAWN_PARMS;i++)
                svs.clients[0].spawn_parms[i] = spawn_parms[i];
 
index f1e4cbf..2d37e22 100644 (file)
--- a/pr_cmds.c
+++ b/pr_cmds.c
@@ -2879,7 +2879,7 @@ void PF_fgets(void)
        {
                c = FS_Getc(pr_files[filenum]);
                if (c != '\n')
-                       FS_UnGetc(pr_files[filenum], c);
+                       FS_UnGetc(pr_files[filenum], (unsigned char)c);
        }
        if (developer.integer)
                Con_Printf("fgets: %s\n", string);
index 39d7573..1d0a3d4 100644 (file)
@@ -1856,7 +1856,7 @@ void VM_fgets(void)
        {
                c = FS_Getc(VM_FILES[filenum]);
                if (c != '\n')
-                       FS_UnGetc(VM_FILES[filenum], c);
+                       FS_UnGetc(VM_FILES[filenum], (unsigned char)c);
        }
        if (developer.integer >= 3)
                Con_Printf("fgets: %s: %s\n", PRVM_NAME, string);