aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2005-10-24 21:00:57 +0000
committerCarsten Weisse <[email protected]>2005-10-24 21:00:57 +0000
commitbe9c21a7f37aa29ad73b8c163aef36bb27dd557c (patch)
tree719efae9cecc4ed69c2ae061c2feaec0cce633a6 /src/jake2
parentf8f1a587c89c2fc7a3a89af9effd9ebbd149158f (diff)
code cleanup
Diffstat (limited to 'src/jake2')
-rw-r--r--src/jake2/render/jogl/Light.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/jake2/render/jogl/Light.java b/src/jake2/render/jogl/Light.java
index 68c9839..73666f0 100644
--- a/src/jake2/render/jogl/Light.java
+++ b/src/jake2/render/jogl/Light.java
@@ -2,7 +2,7 @@
* Light.java
* Copyright (C) 2003
*
- * $Id: Light.java,v 1.7.12.1 2005-07-16 18:25:37 cawe Exp $
+ * $Id: Light.java,v 1.7.12.2 2005-10-24 21:00:57 cawe Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -590,7 +590,7 @@ public abstract class Light extends Warp {
if (monolightmap == '0') {
for (i = 0; i < tmax; i++, destp += stride) {
- for (j = 0; j < smax; j++, destp++) {
+ for (j = 0; j < smax; j++) {
r = (int) bl[blp++];
g = (int) bl[blp++];
@@ -637,13 +637,13 @@ public abstract class Light extends Warp {
g &= 0xFF;
b &= 0xFF;
a &= 0xFF;
- dest.put(destp, (a << 24) | (b << 16) | (g << 8)
+ dest.put(destp++, (a << 24) | (b << 16) | (g << 8)
| (r << 0));
}
}
} else {
for (i = 0; i < tmax; i++, destp += stride) {
- for (j = 0; j < smax; j++, destp++) {
+ for (j = 0; j < smax; j++) {
r = (int) bl[blp++];
g = (int) bl[blp++];
@@ -715,7 +715,7 @@ public abstract class Light extends Warp {
g &= 0xFF;
b &= 0xFF;
a &= 0xFF;
- dest.put(destp, (a << 24) | (b << 16) | (g << 8)
+ dest.put(destp++, (a << 24) | (b << 16) | (g << 8)
| (r << 0));
}
}