- fixed compile warnings in savegame menu code.

- fixed: plane specific lighting values were no longer used when generating the visplanes.


SVN r3133 (trunk)
This commit is contained in:
Christoph Oelckers 2011-02-05 09:17:33 +00:00
parent bb67f6d0a2
commit 16878f6bb4
2 changed files with 2 additions and 4 deletions

View file

@ -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)
{

View file

@ -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