mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-18 23:21:43 +00:00
- removed the different shadeDiv for Ion Fury.
This isn't necessary and was apparently caused by a bug that got fixed in the mean time.
This commit is contained in:
parent
0d82280b87
commit
3be9deb070
2 changed files with 1 additions and 14 deletions
|
@ -30,7 +30,6 @@ InputState inputState;
|
|||
void SetClipshapes();
|
||||
int ShowStartupWindow(TArray<GrpEntry> &);
|
||||
void InitFileSystem(TArray<GrpEntry>&);
|
||||
int globalShadeDiv;
|
||||
bool gHaveNetworking;
|
||||
|
||||
|
||||
|
@ -206,27 +205,18 @@ void CheckFrontend(int flags)
|
|||
if (flags & GAMEFLAG_BLOOD)
|
||||
{
|
||||
gi = Blood::CreateInterface();
|
||||
globalShadeDiv = 62;
|
||||
}
|
||||
else if (flags & GAMEFLAG_RR)
|
||||
{
|
||||
gi = Redneck::CreateInterface();
|
||||
globalShadeDiv = 30;
|
||||
}
|
||||
else if (flags & GAMEFLAG_FURY)
|
||||
{
|
||||
gi = Duke::CreateInterface();
|
||||
globalShadeDiv = 26; // This is different from all other games which need a value two less than the amount of shades.
|
||||
}
|
||||
else if (flags & GAMEFLAG_SW)
|
||||
{
|
||||
gi = ShadowWarrior::CreateInterface();
|
||||
globalShadeDiv = 30;
|
||||
}
|
||||
else
|
||||
{
|
||||
gi = Duke::CreateInterface();
|
||||
globalShadeDiv = 30;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -320,11 +320,8 @@ public:
|
|||
{
|
||||
renderState.Shade = shade;
|
||||
renderState.NumShades = numshades;
|
||||
}
|
||||
renderState.ShadeDiv = 1.f / (numshades-2);
|
||||
|
||||
void SetShadeDiv(int value)
|
||||
{
|
||||
renderState.ShadeDiv = 1.f / value; // There's 3 values here: Blood uses 62 with numShades = 64, Ion Fury uses 30 with NumShades = 32, the other games use 26 with NumShades = 32.
|
||||
}
|
||||
|
||||
void SetVisibility(float visibility, float fviewingrange)
|
||||
|
|
Loading…
Reference in a new issue