From 16878f6bb43723fe440e62ad23afbcf5eb01bb69 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 5 Feb 2011 09:17:33 +0000 Subject: [PATCH] - fixed compile warnings in savegame menu code. - fixed: plane specific lighting values were no longer used when generating the visplanes. SVN r3133 (trunk) --- src/menu/loadsavemenu.cpp | 4 ++-- src/r_bsp.cpp | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/menu/loadsavemenu.cpp b/src/menu/loadsavemenu.cpp index ce4ed4edf..fd0d87f1f 100644 --- a/src/menu/loadsavemenu.cpp +++ b/src/menu/loadsavemenu.cpp @@ -753,7 +753,7 @@ bool DLoadSaveMenu::MenuEvent (int mkey, bool fromcontroller) case MKEY_MBYes: { - if (Selected != -1 && Selected < SaveGames.Size()) + if ((unsigned)Selected < SaveGames.Size()) { int listindex = SaveGames[0]->bNoDelete? Selected-1 : Selected; remove (SaveGames[Selected]->Filename.GetChars()); @@ -819,7 +819,7 @@ bool DLoadSaveMenu::Responder (event_t *ev) { if (ev->subtype == EV_GUI_KeyDown) { - if (Selected != -1 && Selected < SaveGames.Size()) + if ((unsigned)Selected < SaveGames.Size()) { switch (ev->data1) { diff --git a/src/r_bsp.cpp b/src/r_bsp.cpp index 913f2ad32..d24944642 100644 --- a/src/r_bsp.cpp +++ b/src/r_bsp.cpp @@ -1181,7 +1181,6 @@ void R_Subsector (subsector_t *sub) else { basecolormap = frontsector->ColorMap; - ceilinglightlevel = frontsector->lightlevel; } ceilingplane = frontsector->ceilingplane.ZatPoint (viewx, viewy) > viewz || @@ -1212,7 +1211,6 @@ void R_Subsector (subsector_t *sub) else { basecolormap = frontsector->ColorMap; - floorlightlevel = frontsector->lightlevel; } // killough 3/7/98: Add (x,y) offsets to flats, add deep water check