]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_brush.h
improved TraceLine in chase.c to be more generally useful (should move it to another...
[xonotic/darkplaces.git] / model_brush.h
index 172ae413a927bad33be27b3a85d716d244023a84..2ca09612d0ff60e0feff67193c26c3778ce20d67 100644 (file)
@@ -135,7 +135,8 @@ typedef struct msurface_s
        int                     lightmaptexturenum;
        byte            styles[MAXLIGHTMAPS];
        unsigned short  cached_light[MAXLIGHTMAPS];     // values currently used in lightmap
-       int                     cached_lighthalf;                       // LordHavoc: to cause lightmap to be rerendered when lighthalf changes
+       short           cached_dlight;                          // LordHavoc: if lightmap was lit by dynamic lights, update on frame after end of effect to erase it
+       short           cached_lighthalf;                       // LordHavoc: to cause lightmap to be rerendered when lighthalf changes
        float           cached_ambient;                         // LordHavoc: rerender lightmaps when r_ambient changes
        byte            *samples;               // [numstyles*surfsize]
 } msurface_t;