]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
bikeshedding: reduce diff noise with Garux tree
authorGarux <garux@mail.ru>
Sun, 29 Mar 2020 00:59:32 +0000 (01:59 +0100)
committerThomas Debesse <dev@illwieckz.net>
Sun, 29 Mar 2020 01:04:05 +0000 (03:04 +0200)
see:
https://github.com/Garux/netradiant-custom/commit/4292115ef741ff066b382c094f8c7814afaccf59#diff-386c03feac6f15ccc15c4dab7bb97320R342

that's not fair

tools/quake3/q3map2/bspfile_abstract.c

index 4b60a9ed6c270f4df35e2905cf62f17aeec6bbfa..675aef6d3abd6d971333d720b2aa42a2649c9f64 100644 (file)
@@ -344,8 +344,7 @@ void AddLump( FILE *file, bspHeader_t *header, int lumpNum, const void *data, in
        SafeWrite( file, data, length );
 
        /* write padding zeros */
-       char zeros[3] = { 0, 0, 0 };
-       SafeWrite( file, zeros, ( ( length + 3 ) & ~3 ) - length );
+       SafeWrite( file, (const byte[3]){ 0, 0, 0 }, ( ( length + 3 ) & ~3 ) - length );
 }