summaryrefslogtreecommitdiff
path: root/indra/newview/llvosky.h
diff options
context:
space:
mode:
authorChristian Goetze (CG) <cg@lindenlab.com>2010-09-15 11:36:41 -0700
committerChristian Goetze (CG) <cg@lindenlab.com>2010-09-15 11:36:41 -0700
commit3b2031e3ef82ceeeaf6fa45316ce7dbc1bbf7d97 (patch)
tree509ad26077dfbbaf1bb85c3c4584d326d7532cbb /indra/newview/llvosky.h
parentcbed6ecd2be9849aae900ef17070d7bd2aa9542c (diff)
parentbf2849ef2346b41ab096c4c7ce44756e3e20cd27 (diff)
Merge in lenny build fixes.
Diffstat (limited to 'indra/newview/llvosky.h')
-rw-r--r--indra/newview/llvosky.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llvosky.h b/indra/newview/llvosky.h
index 0ac6b9117b..6b3e7873a1 100644
--- a/indra/newview/llvosky.h
+++ b/indra/newview/llvosky.h
@@ -139,10 +139,10 @@ protected:
~LLSkyTex();
- static S32 getResolution() { return sResolution; }
+ static S32 getResolution() { return sResolution; }
static S32 getCurrent() { return sCurrent; }
- static S32 stepCurrent() { return (sCurrent = (sCurrent + 1) % 2); }
- static S32 getNext() { return ((sCurrent+1) % 2); }
+ static S32 stepCurrent() { sCurrent++; sCurrent &= 1; return sCurrent; }
+ static S32 getNext() { return ((sCurrent+1) & 1); }
static S32 getWhich(const BOOL curr) { return curr ? sCurrent : getNext(); }
void initEmpty(const S32 tex);