r3594 - trunk/misc/gtkradiant/singlepatches

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Apr 24 01:45:43 EDT 2008


Author: div0
Date: 2008-04-24 01:45:43 -0400 (Thu, 24 Apr 2008)
New Revision: 3594

Added:
   trunk/misc/gtkradiant/singlepatches/q3map2-UTavgcolorfix.diff
Removed:
   trunk/misc/gtkradiant/singlepatches/q3map2-UTbouncefix.diff
Log:
oops, this q3map2 patch was misnamed


Copied: trunk/misc/gtkradiant/singlepatches/q3map2-UTavgcolorfix.diff (from rev 3556, trunk/misc/gtkradiant/singlepatches/q3map2-UTbouncefix.diff)
===================================================================
--- trunk/misc/gtkradiant/singlepatches/q3map2-UTavgcolorfix.diff	                        (rev 0)
+++ trunk/misc/gtkradiant/singlepatches/q3map2-UTavgcolorfix.diff	2008-04-24 05:45:43 UTC (rev 3594)
@@ -0,0 +1,20 @@
+Index: tools/quake3/q3map2/shaders.c
+===================================================================
+--- tools/quake3/q3map2/shaders.c	(revision 191)
++++ tools/quake3/q3map2/shaders.c	(working copy)
+@@ -793,8 +793,14 @@
+ 	}
+ 	
+ 	if( VectorLength( si->color ) <= 0.0f )
++	{
+ 		ColorNormalize( color, si->color );
+-	VectorScale( color, (1.0f / count), si->averageColor );
++		VectorScale( color, (1.0f / count), si->averageColor );
++	}
++	else
++	{
++		VectorCopy( si->color, si->averageColor );
++	}
+ }
+ 
+ 

Deleted: trunk/misc/gtkradiant/singlepatches/q3map2-UTbouncefix.diff
===================================================================
--- trunk/misc/gtkradiant/singlepatches/q3map2-UTbouncefix.diff	2008-04-23 18:56:21 UTC (rev 3593)
+++ trunk/misc/gtkradiant/singlepatches/q3map2-UTbouncefix.diff	2008-04-24 05:45:43 UTC (rev 3594)
@@ -1,20 +0,0 @@
-Index: tools/quake3/q3map2/shaders.c
-===================================================================
---- tools/quake3/q3map2/shaders.c	(revision 191)
-+++ tools/quake3/q3map2/shaders.c	(working copy)
-@@ -793,8 +793,14 @@
- 	}
- 	
- 	if( VectorLength( si->color ) <= 0.0f )
-+	{
- 		ColorNormalize( color, si->color );
--	VectorScale( color, (1.0f / count), si->averageColor );
-+		VectorScale( color, (1.0f / count), si->averageColor );
-+	}
-+	else
-+	{
-+		VectorCopy( si->color, si->averageColor );
-+	}
- }
- 
- 




More information about the nexuiz-commits mailing list