diff --git a/src/lua_hudlib.c b/src/lua_hudlib.c
index 68a69cd1d..7d0f535fb 100644
--- a/src/lua_hudlib.c
+++ b/src/lua_hudlib.c
@@ -407,7 +407,7 @@ static int libd_getSpritePatch(lua_State *L)
static int libd_getSprite2Patch(lua_State *L)
{
INT32 i; // skin number
- UINT32 j; // sprite2 prefix
+ INT32 j; // sprite2 prefix
UINT32 frame = 0; // 'A'
UINT8 angle = 0;
spritedef_t *sprdef;
diff --git a/src/lua_infolib.c b/src/lua_infolib.c
index 8f2ce67cd..3f5bdc53b 100644
--- a/src/lua_infolib.c
+++ b/src/lua_infolib.c
@@ -102,7 +102,7 @@ static int lib_sprnamelen(lua_State *L)
// push sprite name
static int lib_getSpr2name(lua_State *L)
{
- UINT32 i;
+ INT32 i;
lua_remove(L, 1); // don't care about spr2names[] dummy userdata.
@@ -129,7 +129,7 @@ static int lib_getSpr2name(lua_State *L)
static int lib_getSpr2default(lua_State *L)
{
- UINT32 i;
+ INT32 i;
lua_remove(L, 1); // don't care about spr2defaults[] dummy userdata.
@@ -154,7 +154,7 @@ static int lib_getSpr2default(lua_State *L)
static int lib_setSpr2default(lua_State *L)
{
- UINT32 i;
+ INT32 i;
UINT8 j = 0;
lua_remove(L, 1); // don't care about spr2defaults[] dummy userdata.
diff --git a/src/m_menu.c b/src/m_menu.c
index dedbd86f0..44386b34a 100644
--- a/src/m_menu.c
+++ b/src/m_menu.c
@@ -4964,7 +4964,10 @@ static void M_DrawAddons(void)
// hack - need to refresh at end of frame to handle addfile...
if (refreshdirmenu & M_AddonsRefresh())
- return M_DrawMessageMenu();
+ {
+ M_DrawMessageMenu();
+ return;
+ }
if (addonsresponselimit)
addonsresponselimit--;
diff --git a/src/sdl/Srb2SDL-vc10.vcxproj b/src/sdl/Srb2SDL-vc10.vcxproj
index abf6d76d2..00ed0db39 100644
--- a/src/sdl/Srb2SDL-vc10.vcxproj
+++ b/src/sdl/Srb2SDL-vc10.vcxproj
@@ -141,6 +141,7 @@
+
@@ -282,6 +283,7 @@
+
diff --git a/src/sdl/Srb2SDL-vc10.vcxproj.filters b/src/sdl/Srb2SDL-vc10.vcxproj.filters
index bdb029cf9..1d132faf0 100644
--- a/src/sdl/Srb2SDL-vc10.vcxproj.filters
+++ b/src/sdl/Srb2SDL-vc10.vcxproj.filters
@@ -444,6 +444,9 @@
SDLApp
+
+ Hw_Hardware
+
@@ -879,6 +882,9 @@
SDLApp
+
+ Hw_Hardware
+
diff --git a/src/w_wad.c b/src/w_wad.c
index 75bf40983..f25711e4e 100644
--- a/src/w_wad.c
+++ b/src/w_wad.c
@@ -448,7 +448,7 @@ UINT16 W_InitFile(const char *filename)
// We must look for the central directory through the file. (Thanks to JTE for this algorithm.)
// All of the central directory entry headers have a signature of 0x50 0x4b 0x01 0x02.
// The first entry found means the beginning of the central directory.
- fseek(handle, -min(size, (22 + 65536)), SEEK_CUR);
+ fseek(handle, 0-min(size, (22 + 65536)), SEEK_CUR);
s = endPat;
while((c = fgetc(handle)) != EOF)
{
@@ -1198,6 +1198,7 @@ size_t W_ReadLumpHeaderPwad(UINT16 wad, UINT16 lump, void *dest, size_t size, si
default:
I_Error("wad %d, lump %d: unsupported compression type!", wad, lump);
}
+ return 0;
}
size_t W_ReadLumpHeader(lumpnum_t lumpnum, void *dest, size_t size, size_t offset)
diff --git a/src/win32/Srb2win-vc10.vcxproj b/src/win32/Srb2win-vc10.vcxproj
index 95f9c85f9..ed6b46b8f 100644
--- a/src/win32/Srb2win-vc10.vcxproj
+++ b/src/win32/Srb2win-vc10.vcxproj
@@ -119,6 +119,7 @@
+
@@ -276,6 +277,7 @@
+
diff --git a/src/win32/Srb2win-vc10.vcxproj.filters b/src/win32/Srb2win-vc10.vcxproj.filters
index cfd46f1f8..6319749a9 100644
--- a/src/win32/Srb2win-vc10.vcxproj.filters
+++ b/src/win32/Srb2win-vc10.vcxproj.filters
@@ -450,6 +450,9 @@
M_Misc
+
+ Hw_Hardware
+
@@ -845,6 +848,9 @@
O_Other
+
+ Hw_Hardware
+