r4636 - trunk/data/qcsrc/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Oct 5 06:10:39 EDT 2008


Author: div0
Date: 2008-10-05 06:10:39 -0400 (Sun, 05 Oct 2008)
New Revision: 4636

Modified:
   trunk/data/qcsrc/client/waypointsprites.qc
Log:
iapply the vid_conwidth/height ratio for the sprites


Modified: trunk/data/qcsrc/client/waypointsprites.qc
===================================================================
--- trunk/data/qcsrc/client/waypointsprites.qc	2008-10-05 09:59:07 UTC (rev 4635)
+++ trunk/data/qcsrc/client/waypointsprites.qc	2008-10-05 10:10:39 UTC (rev 4636)
@@ -170,7 +170,9 @@
 	}
 	o_z = 0;
 
-	drawrotpic(o, rot * 90 * DEG2RAD, strcat("models/sprites/", spriteimage), SPRITE_SIZE * waypointsprite_scale, SPRITE_HOTSPOT * waypointsprite_scale, '1 1 1', a, 0);
+	float vidscale;
+	vidscale = max(vid_conwidth / vid_width, vid_conheight / vid_height);
+	drawrotpic(o, rot * 90 * DEG2RAD, strcat("models/sprites/", spriteimage), SPRITE_SIZE * waypointsprite_scale * vidscale, SPRITE_HOTSPOT * waypointsprite_scale * vidscale, '1 1 1', a, 0);
 }
 
 void Ent_WaypointSprite()




More information about the nexuiz-commits mailing list