Skip to content

Commit

Permalink
Use correct scale for the player brightness value to fix stealth calc…
Browse files Browse the repository at this point in the history
…ulations.

This was broken in commit 4725049
Fixes bug #262

Thanks Cypher
  • Loading branch information
dscharrer committed May 18, 2012
1 parent 467d94c commit 0b605ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/graphics/data/Mesh.cpp
Expand Up @@ -1092,10 +1092,10 @@ float GetColorz(float x, float y, float z) {
ApplyDynLight(ep);

for(long i = 0; i < to; i++) {
Color3f col = Color3f::fromBGR(ep->tv[i].color);
_ffr += col.r;
_ffg += col.g;
_ffb += col.b;
Color col = Color::fromBGR(ep->tv[i].color);
_ffr += float(col.r);
_ffg += float(col.g);
_ffb += float(col.b);
}

_ffr *= div;
Expand Down

0 comments on commit 0b605ee

Please sign in to comment.