summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/System.c4g/Sun.c
diff options
context:
space:
mode:
Diffstat (limited to 'TemplePushing.c4s/System.c4g/Sun.c')
-rw-r--r--TemplePushing.c4s/System.c4g/Sun.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/TemplePushing.c4s/System.c4g/Sun.c b/TemplePushing.c4s/System.c4g/Sun.c
index 9a52923..7ad69a8 100644
--- a/TemplePushing.c4s/System.c4g/Sun.c
+++ b/TemplePushing.c4s/System.c4g/Sun.c
@@ -30,18 +30,4 @@ protected func TuWasBraves()
// Sonnenposition anpassen
BerechneSonne();
SetPosition(SonneX,SonneY);
- // Nachts ausblenden
- if(IsDay())
- SetVisibility (VIS_Owner());
- else
- SetVisibility (VIS_None());
- // Bei Nähe zur Sonne blenden
- var VektorDist=GibVektorDist(GetOwner());
- if(IsDay())
- {
- var Gelbstich = BoundBy((500-VektorDist)/5,0,100); // Prozentangabe 0 = weit weg, 100 = nahe; 500 Pixel sind dabei "weit weg"
- SetGamma (RGB(000+(30*Gelbstich)/100,000+(30*Gelbstich)/100,000),
- RGB(128+(60*Gelbstich)/100,128+(60*Gelbstich)/100,128),
- RGB(255,255,255), GammaRampe_Lenseflare());
- }
} \ No newline at end of file