projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0904884
)
Fix rebase bug, make render loop use cache setting
author
gregorycu
<gregory.currie@gmail.com>
Mon, 2 Feb 2015 12:54:32 +0000
(23:54 +1100)
committer
Craig Robbins
<kde.psych@gmail.com>
Sat, 7 Feb 2015 12:23:36 +0000
(22:23 +1000)
src/game.cpp
patch
|
blob
|
history
diff --git
a/src/game.cpp
b/src/game.cpp
index b674fd83b281bffd382db35562b95490321f1691..fe3e838b244854489e4316fd1265ba08638ac69f 100644
(file)
--- a/
src/game.cpp
+++ b/
src/game.cpp
@@
-859,7
+859,7
@@
public:
// Fog distance
float fog_distance = 10000 * BS;
- if (
g_settings->getBool("enable_fog")
&& !*m_force_fog_off)
+ if (
m_fogEnabled
&& !*m_force_fog_off)
fog_distance = *m_fog_range;
services->setPixelShaderConstant("fogDistance", &fog_distance, 1);