roty[i] = -10;
}
if (type[i] == treetrunktype || type[i] == treeleavestype) {
- if (type[i] == treetrunktype || environment == 2) {
+ if (type[i] == treetrunktype || environment == desertenvironment) {
messedwith[i] -= multiplier;
if (rotxvel[i] || rotx[i]) {
if (rotx[i] > 0) rotxvel[i] -= multiplier * 8 * fabs(rotx[i]);
M[13] = 0;
M[14] = 0;
glLoadMatrixf(M);
- if (environment == 2)
+ if (environment == desertenvironment) {
glScalef(1 + blurness / 1000, 1, 1 + blurness / 1000);
- if (environment != 2)
- glColor3f(.85 * skyboxr, .85 * skyboxg, .95 * skyboxb);
- else
glColor3f(1 * skyboxr, .95 * skyboxg, .95 * skyboxb);
+ } else {
+ glColor3f(.85 * skyboxr, .85 * skyboxg, .95 * skyboxb);
+ }
if (!skyboxtexture) {
glDisable(GL_TEXTURE_2D);