diff --git a/Source/drlg_l2.cpp b/Source/drlg_l2.cpp index fbd9888c3..c70fca09f 100644 --- a/Source/drlg_l2.cpp +++ b/Source/drlg_l2.cpp @@ -2168,8 +2168,6 @@ static void ConnectHall(int nX1, int nY1, int nX2, int nY2, int nHd) nOrigY1 = nY1; CreateDoorType(nX1, nY1); CreateDoorType(nX2, nY2); - nDx = abs(nX2 - nX1); /* unused */ - nDy = abs(nY2 - nY1); /* unused */ nCurrd = nHd; nX2 -= Dir_Xadd[nCurrd]; nY2 -= Dir_Yadd[nCurrd]; diff --git a/Source/init.cpp b/Source/init.cpp index 17b0714a1..675901024 100644 --- a/Source/init.cpp +++ b/Source/init.cpp @@ -118,7 +118,7 @@ void init_create_window() void init_archives() { - HANDLE fh; + HANDLE fh = NULL; memset(&fileinfo, 0, sizeof(fileinfo)); fileinfo.size = sizeof(fileinfo); fileinfo.versionstring = gszVersionNumber; diff --git a/Source/pfile.cpp b/Source/pfile.cpp index a248968cb..b7b89f412 100644 --- a/Source/pfile.cpp +++ b/Source/pfile.cpp @@ -246,7 +246,7 @@ BOOL pfile_ui_set_hero_infos(BOOL(*ui_add_hero_info)(_uiheroinfo *)) BOOL pfile_read_hero(HANDLE archive, PkPlayerStruct *pPack) { HANDLE file; - DWORD dwlen, nSize; + DWORD dwlen; BYTE *buf; if (!SFileOpenFileEx(archive, "hero", 0, &file)) { @@ -254,7 +254,6 @@ BOOL pfile_read_hero(HANDLE archive, PkPlayerStruct *pPack) } else { BOOL ret = FALSE; const char *password; - nSize = 16; if (gbIsSpawn) { password = PASSWORD_SPAWN_SINGLE; diff --git a/Source/towners.cpp b/Source/towners.cpp index 52a4679e3..2b11e5a4a 100644 --- a/Source/towners.cpp +++ b/Source/towners.cpp @@ -737,10 +737,6 @@ void TalkToTowner(int p, int t) int qt, t2; #endif - rv1 = random_(6, 3); /* unused */ - rv2 = random_(6, 4); /* unused */ - rv3 = random_(6, 5); /* unused */ - dx = abs(plr[p]._px - towner[t]._tx); dy = abs(plr[p]._py - towner[t]._ty); #ifdef _DEBUG