r3356 - trunk/data/models/sprites

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Feb 10 11:38:46 EST 2008


Author: div0
Date: 2008-02-10 11:38:44 -0500 (Sun, 10 Feb 2008)
New Revision: 3356

Modified:
   trunk/data/models/sprites/makespr32
Log:
fix a bug (or not?) in makespr32 that made DP misinterpret the origin. TASK: find out whether DP is doing it wrong, or the docs I read to write the original code of this


Modified: trunk/data/models/sprites/makespr32
===================================================================
--- trunk/data/models/sprites/makespr32	2008-02-09 18:13:07 UTC (rev 3355)
+++ trunk/data/models/sprites/makespr32	2008-02-10 16:38:44 UTC (rev 3356)
@@ -77,7 +77,7 @@
 		}
 		for(@$f)
 		{
-			syswrite $fh, pack 'V', -$_->{orgx};
+			syswrite $fh, pack 'V', $_->{orgx} - $_->{width};
 			syswrite $fh, pack 'V', $_->{orgy};
 			syswrite $fh, pack 'V', $_->{width};
 			syswrite $fh, pack 'V', $_->{height};




More information about the nexuiz-commits mailing list