Ignore:
Timestamp:
Mar 18, 2008, 10:40:37 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Minor style changes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/light.cpp

    r124 r125  
    190190  {
    191191    npal.set(i,(int)rs,(int)gs,(int)bs);
    192     rs+=ra; if (rs>255) rs=255; if (rs<0) rs=0;
    193     gs+=ga; if (gs>255) gs=255; if (gs<0) gs=0;
    194     bs+=ba; if (bs>255) bs=255; if (bs<0) bs=0;
     192    rs+=ra; if (rs>255) rs=255; else if (rs<0) rs=0;
     193    gs+=ga; if (gs>255) gs=255; else if (gs<0) gs=0;
     194    bs+=ba; if (bs>255) bs=255; else if (bs<0) bs=0;
    195195  }
    196196  filter f(pal,&npal);
     
    244244    if( recalc )
    245245    {
    246         fprintf(stderr,"Palette has changed, recalculating light table...\n");
     246        dprintf("Palette has changed, recalculating light table...\n");
    247247        stat_man->push("white light",NULL);
    248248        int color=0;
Note: See TracChangeset for help on using the changeset viewer.