mirror of
https://github.com/ZDoom/gzdoom-last-svn.git
synced 2025-06-02 02:01:19 +00:00
- Update to ZDoom r1859 including adjustments for all the changes that were only made for the software renderer.
git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@467 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
parent
b13ba9eff1
commit
4e442c49d2
110 changed files with 974 additions and 1041 deletions
|
@ -1208,45 +1208,23 @@ void R_SetupFrame (AActor *actor)
|
|||
}
|
||||
|
||||
fixedcolormap = NULL;
|
||||
fixedlightlev = 0;
|
||||
fixedlightlev = -1;
|
||||
|
||||
if (player != NULL && camera == player->mo && player->fixedcolormap)
|
||||
if (player != NULL && camera == player->mo)
|
||||
{
|
||||
if (player->fixedcolormap < NUMCOLORMAPS)
|
||||
if (player->fixedcolormap >= 0 && player->fixedcolormap < NUM_SPECIALCOLORMAPS)
|
||||
{
|
||||
fixedlightlev = player->fixedcolormap*256;
|
||||
fixedcolormap = NormalLight.Maps;
|
||||
fixedcolormap = SpecialColormaps[player->fixedcolormap];
|
||||
}
|
||||
else switch (player->fixedcolormap)
|
||||
else if (player->fixedlightlevel >= 0 && player->fixedlightlevel < NUMCOLORMAPS)
|
||||
{
|
||||
case INVERSECOLORMAP:
|
||||
fixedcolormap = InverseColormap;
|
||||
break;
|
||||
|
||||
case REDCOLORMAP:
|
||||
fixedcolormap = RedColormap;
|
||||
break;
|
||||
|
||||
case GREENCOLORMAP:
|
||||
fixedcolormap = GreenColormap;
|
||||
break;
|
||||
|
||||
case BLUECOLORMAP:
|
||||
fixedcolormap = BlueColormap;
|
||||
break;
|
||||
|
||||
case GOLDCOLORMAP:
|
||||
fixedcolormap = GoldColormap;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
fixedlightlev = player->fixedlightlevel * 256;
|
||||
}
|
||||
}
|
||||
// [RH] Inverse light for shooting the Sigil
|
||||
else if (extralight == INT_MIN)
|
||||
if (fixedcolormap == NULL && extralight == INT_MIN)
|
||||
{
|
||||
fixedcolormap = InverseColormap;
|
||||
fixedcolormap = SpecialColormaps[INVERSECOLORMAP];
|
||||
extralight = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue