Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-05-12 10:57:38 +0000
committerStijn Buys <ingar@osirion.org>2008-05-12 10:57:38 +0000
commit24c695e83947d3457dbd1f5d696fa09b4ef953c0 (patch)
treea666996d17bf611ffbec4fa364f258b00e7adef4 /src/render
parentd2e93235b9ccd37bf8c8fb7c4376ab1911c83639 (diff)
light offset bugfix, console word wrapping
Diffstat (limited to 'src/render')
-rw-r--r--src/render/draw.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/draw.cc b/src/render/draw.cc
index e2037e2..7c35bf3 100644
--- a/src/render/draw.cc
+++ b/src/render/draw.cc
@@ -428,7 +428,7 @@ void draw_pass_model_fx()
// strobe frequency
t = 1.0f;
if ((*lit)->strobe())
- t = (core::application()->time() + entity->state()->fuzz() + (*lit)->offset()) * (*lit)->frequency();
+ t = (core::application()->time() + entity->state()->fuzz() - (*lit)->offset()) * (*lit)->frequency();
if (!(*lit)->strobe() || (( t - floorf(t)) <= (*lit)->time())) {
math::Vector3f location = entity->state()->location() + (entity->axis() * (*lit)->location());