aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/render/lwjgl/Main.java
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2005-01-18 00:26:21 +0000
committerCarsten Weisse <[email protected]>2005-01-18 00:26:21 +0000
commit1a0c8b25b6f8a51506845818671013fddd62c0a2 (patch)
tree58101460e18cfd4aac5699437479feefe36e95e3 /src/jake2/render/lwjgl/Main.java
parent507306584f94449a6aef828405327e05dedb72c7 (diff)
variable renamed an a stupid bug fixed
Diffstat (limited to 'src/jake2/render/lwjgl/Main.java')
-rw-r--r--src/jake2/render/lwjgl/Main.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/jake2/render/lwjgl/Main.java b/src/jake2/render/lwjgl/Main.java
index 1b1e83f..984d83d 100644
--- a/src/jake2/render/lwjgl/Main.java
+++ b/src/jake2/render/lwjgl/Main.java
@@ -2,7 +2,7 @@
* Main.java
* Copyright (C) 2003
*
- * $Id: Main.java,v 1.3 2005-01-17 13:30:38 cawe Exp $
+ * $Id: Main.java,v 1.4 2005-01-18 00:26:21 cawe Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -894,7 +894,7 @@ public abstract class Main extends Base {
}
// stack variable
- private final float[] shadelight1 = { 0, 0, 0 };
+ private final float[] light = { 0, 0, 0 };
/**
* R_SetLightLevel
*/
@@ -904,21 +904,21 @@ public abstract class Main extends Base {
// save off light value for server to look at (BIG HACK!)
- R_LightPoint(r_newrefdef.vieworg, shadelight);
+ R_LightPoint(r_newrefdef.vieworg, light);
// pick the greatest component, which should be the same
// as the mono value returned by software
- if (shadelight1[0] > shadelight1[1]) {
- if (shadelight1[0] > shadelight1[2])
- r_lightlevel.value = 150 * shadelight1[0];
+ if (light[0] > light[1]) {
+ if (light[0] > light[2])
+ r_lightlevel.value = 150 * light[0];
else
- r_lightlevel.value = 150 * shadelight1[2];
+ r_lightlevel.value = 150 * light[2];
}
else {
- if (shadelight1[1] > shadelight1[2])
- r_lightlevel.value = 150 * shadelight1[1];
+ if (light[1] > light[2])
+ r_lightlevel.value = 150 * light[1];
else
- r_lightlevel.value = 150 * shadelight1[2];
+ r_lightlevel.value = 150 * light[2];
}
}