]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_lightning.c
gave names to nearly all structs and enums which should make for better C++ error...
[xonotic/darkplaces.git] / r_lightning.c
index 15ac59335db2684f2278cd548d9658b2e6589f44..9290d7a011a0c9f6dab914118f4d64872cc4b18e 100644 (file)
@@ -40,7 +40,11 @@ void r_lightningbeams_setuptexture(void)
        float particlex, particley, particlexv, particleyv, dx, dy, s, maxpathstrength;
        qbyte *pixels;
        int *image;
-       struct {float x, y, strength;} path[PATHPOINTS], temppath;
+       struct lightningpathnode_s
+       {
+               float x, y, strength;
+       }
+       path[PATHPOINTS], temppath;
 
        image = Mem_Alloc(tempmempool, BEAMWIDTH * BEAMHEIGHT * sizeof(int));
        pixels = Mem_Alloc(tempmempool, BEAMWIDTH * BEAMHEIGHT * sizeof(qbyte[4]));