newmap fullbright fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3024 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-10-14 21:59:48 +00:00
parent 4c7b092357
commit 512e8b527e
4 changed files with 8 additions and 3 deletions
+5
View File
@@ -142,8 +142,13 @@ void postlightarea(const block &a) // median filter, smooths out random noise
int lastcalclight = 0;
VARP(fullbrightlevel, 0, 176, 255);
void fullbrightlight(int level)
{
if(level < 0) level = fullbrightlevel;
else level = min(level, 255);
loopi(mipsize) world[i].r = world[i].g = world[i].b = level;
lastcalclight = totalmillis;
}