]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Fixed FS_Seek for unpacked files when FS_USESYSCALLS is defined (should fix HalfLife...
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 1 Dec 2004 14:00:52 +0000 (14:00 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 1 Dec 2004 14:00:52 +0000 (14:00 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4811 d7cf8633-e32d-0410-b094-e92efae38249

fs.c
todo

diff --git a/fs.c b/fs.c
index 2f00c1ea34ba7a5bddfea17ec6f3d8ef974376d4..6544ff766be302692ca6e2188283ad73203d251d 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -1627,7 +1627,11 @@ int FS_Seek (qfile_t* file, long offset, int whence)
        // Quick path for unpacked files
        if (! (file->flags & FS_FLAG_PACKED))
 #ifdef FS_USESYSCALLS
-               return lseek (file->stream, offset, whence);
+       {
+               if (lseek (file->stream, offset, whence) == -1)
+                       return -1;
+               return 0;
+       }
 #else
                return fseek (file->stream, offset, whence);
 #endif
diff --git a/todo b/todo
index f943028b1e65adbf87226c2f202473ad914dbfd3..f4a7385acb5522155bda7fbfb5b816c4ead8019c 100644 (file)
--- a/todo
+++ b/todo
@@ -10,6 +10,7 @@
 -d (Urre, Harb, FrikaC) darkplaces protocol: add PRYDON_CLIENTCURSOR extension - clientside mouse with highlighting of selected entities with the EF_SELECTABLE flag, and qc fields on the client entity on the server would indicate which entity the cursor is highlighting as well as where it is (Urre, Harb, FrikaC) 
 -d (Vermeulen) darkplaces protocol: add DP_SV_BUTTONCHAT extension to document the addition of .buttonchat to indicate if someone is not in key_game mode, so mods can show a talk bubble if they wish (Vermeulen)
 -d (Wazat, Kinn, Urre, romi) darkplaces WGL client: default WGL input back to GDI, the DirectInput driver is malfunctioning, losing key release messages, stuttering mouse input, and lacks mouse wheel support (Wazat, Kinn)
+-d (ryan[sg]) darkplaces loader: halflife wad loading is unable to seek to lump table (ryan[sg], Elric)
 -f (Tomaz, sublim3) darkplaces protocol: fix cl_nodelta 1, it's halting updates after you move away from an area (Tomaz, sublim3)
 -f (VorteX) darkplaces protocol: add DP_EF_HIGHPRECISION to send float origins instead of shorts (VorteX)
 -f (yummyluv) darkplaces protocol: add buttons 9-16 (yummyluv)
@@ -43,7 +44,6 @@
 0 darkplaces editlights: split rtlight drawshadows option into drawworldshadows and drawentityshadows options, this allows combinations like no world shadows (for speed) but still having entity shadows (Mitchell, romi)
 0 darkplaces input: centerview command isn't doing anything until console is activated, it should begin the pitch drift immediately as in quake (Sajt)
 0 darkplaces input: ignore first mouse move in windows fullscreen when coming back from an alt-tab (sublim3)
-0 darkplaces loader: halflife wad loading is unable to seek to lump table (ryan[sg], Elric)
 0 darkplaces loader: only load .lit if the file size matches lumpsize * 3 + 8, as a rough check that the lit is for the correct bsp file (Spike)
 0 darkplaces loading: add hud_clearprecache and hud_precachepic commands to preload pics by name, these get reloaded by r_restart as well, mods can put a lot of these commands in their default.cfg to precache needed hud art (Tomaz)
 0 darkplaces loading: check for out of bounds lump data ranges in maps (FrikaC)