Among other things it fixes masterserver compiling.
This commit is contained in:
aurhat
2015-08-16 16:44:18 +02:00
parent 673286d25b
commit 3a4edff826
4 changed files with 11 additions and 6 deletions
+5 -2
View File
@@ -628,6 +628,9 @@ GLuint reflecttex = 0, refracttex = 0;
int reflectlastsize = 0;
VARP(reflectsize, 6, 8, 10);
// FIXME The bug: HUD (equipment icons etc.) reflects on the water surface.
// Therefore previous default value of reflectlip was changed from 3 to 1, in order to minimalize this negative effect.
// Restore it, when the bug will be fixed.
VAR(reflectclip, 0, 1, 100);
VARP(waterreflect, 0, 1, 1);
VARP(waterrefract, 0, 0, 1);
@@ -951,7 +954,7 @@ void sethudgunperspective(bool on)
glMatrixMode(GL_MODELVIEW);
}
void drawhudgun(int w, int h, float aspect, int farplane)
void drawhudgun()
{
sethudgunperspective(true);
@@ -1122,7 +1125,7 @@ void gl_drawframe(int w, int h, float changelod, float curfps)
WaypointClass.Think();
// end add
drawhudgun(w, h, aspect, farplane);
drawhudgun();
resettmu(0);