projects
/
xonotic
/
netradiant.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4afa1f6
)
fix lightstyle compare (SIGBUS on SPARC)
author
Rudolf Polzer <divverent@xonotic.org>
Thu, 8 Dec 2011 13:11:06 +0000
(14:11 +0100)
committer
Rudolf Polzer <divverent@xonotic.org>
Thu, 8 Dec 2011 13:11:06 +0000
(14:11 +0100)
tools/quake3/q3map2/bspfile_rbsp.c
patch
|
blob
|
history
diff --git
a/tools/quake3/q3map2/bspfile_rbsp.c
b/tools/quake3/q3map2/bspfile_rbsp.c
index 79f177ea81d2a5ff8b0f80fd0d70afcd96815a5c..644f1f5f97c8289673e7c04386f3a129cc5ff5ec 100644
(file)
--- a/
tools/quake3/q3map2/bspfile_rbsp.c
+++ b/
tools/quake3/q3map2/bspfile_rbsp.c
@@
-146,7
+146,7
@@
static void AddLightGridLumps( FILE *file, rbspHeader_t *header )
out = &gridPoints[ j ];
/* compare styles */
- if(
*((unsigned int*) in->styles) != *((unsigned int*) out->styles
) )
+ if(
memcmp(in->styles, out->styles, MAX_LIGHTMAPS
) )
continue;
/* compare direction */