mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-07 07:21:01 +00:00
- 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:
parent
bb67f6d0a2
commit
16878f6bb4
2 changed files with 2 additions and 4 deletions
|
@ -753,7 +753,7 @@ bool DLoadSaveMenu::MenuEvent (int mkey, bool fromcontroller)
|
||||||
|
|
||||||
case MKEY_MBYes:
|
case MKEY_MBYes:
|
||||||
{
|
{
|
||||||
if (Selected != -1 && Selected < SaveGames.Size())
|
if ((unsigned)Selected < SaveGames.Size())
|
||||||
{
|
{
|
||||||
int listindex = SaveGames[0]->bNoDelete? Selected-1 : Selected;
|
int listindex = SaveGames[0]->bNoDelete? Selected-1 : Selected;
|
||||||
remove (SaveGames[Selected]->Filename.GetChars());
|
remove (SaveGames[Selected]->Filename.GetChars());
|
||||||
|
@ -819,7 +819,7 @@ bool DLoadSaveMenu::Responder (event_t *ev)
|
||||||
{
|
{
|
||||||
if (ev->subtype == EV_GUI_KeyDown)
|
if (ev->subtype == EV_GUI_KeyDown)
|
||||||
{
|
{
|
||||||
if (Selected != -1 && Selected < SaveGames.Size())
|
if ((unsigned)Selected < SaveGames.Size())
|
||||||
{
|
{
|
||||||
switch (ev->data1)
|
switch (ev->data1)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1181,7 +1181,6 @@ void R_Subsector (subsector_t *sub)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
basecolormap = frontsector->ColorMap;
|
basecolormap = frontsector->ColorMap;
|
||||||
ceilinglightlevel = frontsector->lightlevel;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ceilingplane = frontsector->ceilingplane.ZatPoint (viewx, viewy) > viewz ||
|
ceilingplane = frontsector->ceilingplane.ZatPoint (viewx, viewy) > viewz ||
|
||||||
|
@ -1212,7 +1211,6 @@ void R_Subsector (subsector_t *sub)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
basecolormap = frontsector->ColorMap;
|
basecolormap = frontsector->ColorMap;
|
||||||
floorlightlevel = frontsector->lightlevel;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// killough 3/7/98: Add (x,y) offsets to flats, add deep water check
|
// killough 3/7/98: Add (x,y) offsets to flats, add deep water check
|
||||||
|
|
Loading…
Reference in a new issue