MCPcopy Create free account
hub / github.com/assaultcube/AC / fullbrightlight

Function fullbrightlight

source/src/worldlight.cpp:169–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167VARP(fullbrightlevel, 0, 176, 255);
168
169void fullbrightlight(int level)
170{
171 if(level < 0) level = fullbrightlevel;
172
173 loopi(mipsize) world[i].r = world[i].g = world[i].b = level;
174 lastcalclight = totalmillis;
175}
176
177VARF(ambient, 0, 0, 0xFFFFFF, if(!noteditmode("ambient")) { hdr.ambient = ambient; calclight(); unsavededits++;});
178

Callers 2

empty_worldFunction · 0.85
editing.cppFile · 0.85

Calls 1

loopiFunction · 0.70

Tested by

no test coverage detected