X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FObjects.cpp;h=572f16ba6888f9124267d3725d14737ed1ae23f5;hb=31801560f92e99939f40ee49d9c279324db044bb;hp=6f3d3c08f44a5f981fdbb72d5a1f900538f1bd9b;hpb=87ff660bf58766ab705a749e72e04154ccf5a737;p=lugaru.git diff --git a/Source/Objects.cpp b/Source/Objects.cpp index 6f3d3c0..572f16b 100644 --- a/Source/Objects.cpp +++ b/Source/Objects.cpp @@ -39,7 +39,7 @@ extern bool skyboxtexture; //Functions -bool Objects::checkcollide(XYZ startpoint, XYZ endpoint, int which) +bool Objects::checkcollide(XYZ startpoint, XYZ endpoint, int which) { static XYZ colpoint, colviewer, coltarget; static int i; @@ -111,7 +111,7 @@ void Objects::Draw() } else occluded[i]=0;*/ if (occluded[i] < 6) { - glMatrixMode(GL_MODELVIEW); // Select The Modelview Matrix + glMatrixMode(GL_MODELVIEW); glPushMatrix(); if (!model[i].color) glEnable(GL_LIGHTING); @@ -366,7 +366,7 @@ void Objects::Draw() distance = 1; if (distance > 0) { if (1 == 1 || occluded[i] < 6) { - glMatrixMode(GL_MODELVIEW); // Select The Modelview Matrix + glMatrixMode(GL_MODELVIEW); glPushMatrix(); glEnable(GL_LIGHTING); glDepthMask(1);