]> git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Fix the first radar bug, causing the foreground / background images to appear stretch...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 17 Mar 2012 10:24:33 +0000 (12:24 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 17 Mar 2012 10:24:33 +0000 (12:24 +0200)
data/qcsrc/client/radar.qc
docs/TODO.txt

index f266d2970dd855a78b086c71810002a271e53dc6..2808d339e3af4e83c94992f7936452feb18f25f8 100644 (file)
@@ -65,11 +65,11 @@ void draw_radar_background(float ca, float bg, float fg)
 \r
        if(bg > 0)\r
        {\r
-               R_BeginPolygon("gfx/hud/bg_radar.tga", DRAWFLAG_NORMAL);\r
-               R_PolygonVertex(pos1, yinvert(mi_pictexcoord1), '1 1 1', bg);\r
-               R_PolygonVertex(pos2, yinvert(mi_pictexcoord2), '1 1 1', bg);\r
-               R_PolygonVertex(pos3, yinvert(mi_pictexcoord3), '1 1 1', bg);\r
-               R_PolygonVertex(pos4, yinvert(mi_pictexcoord0), '1 1 1', bg);\r
+               R_BeginPolygon("gfx/hud/bg_radar.tga", 0);\r
+               R_PolygonVertex(pos1, yinvert('0 1 0'), '1 1 1', bg);\r
+               R_PolygonVertex(pos2, yinvert('1 1 0'), '1 1 1', bg);\r
+               R_PolygonVertex(pos3, yinvert('1 0 0'), '1 1 1', bg);\r
+               R_PolygonVertex(pos4, yinvert('0 0 0'), '1 1 1', bg);\r
                R_EndPolygon();\r
        }\r
 \r
@@ -96,18 +96,18 @@ void draw_radar_background(float ca, float bg, float fg)
 \r
        if(fg > 0)\r
        {\r
-               R_BeginPolygon("gfx/hud/fg_radar.tga", DRAWFLAG_NORMAL);\r
-               R_PolygonVertex(pos1, yinvert(mi_pictexcoord1), '1 1 1', fg);\r
-               R_PolygonVertex(pos2, yinvert(mi_pictexcoord2), '1 1 1', fg);\r
-               R_PolygonVertex(pos3, yinvert(mi_pictexcoord3), '1 1 1', fg);\r
-               R_PolygonVertex(pos4, yinvert(mi_pictexcoord0), '1 1 1', fg);\r
+               R_BeginPolygon("gfx/hud/fg_radar.tga", 0);\r
+               R_PolygonVertex(pos1, yinvert('0 1 0'), '1 1 1', fg);\r
+               R_PolygonVertex(pos2, yinvert('1 1 0'), '1 1 1', fg);\r
+               R_PolygonVertex(pos3, yinvert('1 0 0'), '1 1 1', fg);\r
+               R_PolygonVertex(pos4, yinvert('0 0 0'), '1 1 1', fg);\r
                R_EndPolygon();\r
 \r
-               R_BeginPolygon("gfx/hud/fg_radar_team.tga", DRAWFLAG_NORMAL);\r
-               R_PolygonVertex(pos1, yinvert(mi_pictexcoord1), rgb, fg);\r
-               R_PolygonVertex(pos2, yinvert(mi_pictexcoord2), rgb, fg);\r
-               R_PolygonVertex(pos3, yinvert(mi_pictexcoord3), rgb, fg);\r
-               R_PolygonVertex(pos4, yinvert(mi_pictexcoord0), rgb, fg);\r
+               R_BeginPolygon("gfx/hud/fg_radar_team.tga", 0);\r
+               R_PolygonVertex(pos1, yinvert('0 1 0'), rgb, fg);\r
+               R_PolygonVertex(pos2, yinvert('1 1 0'), rgb, fg);\r
+               R_PolygonVertex(pos3, yinvert('1 0 0'), rgb, fg);\r
+               R_PolygonVertex(pos4, yinvert('0 0 0'), rgb, fg);\r
                R_EndPolygon();\r
        }\r
 }\r
index 1226ea8e0e67eadda29f550c7a414f948baa3a64..53a0caff844f1e771a682c1bee319ade1c7db1ed 100644 (file)
 \r
 - 0.7: Bots should digest items even at 0 skill\r
 \r
-- 0.7 BUG: The minimap foreground appears stretched on Desertfactory\r
+- 0.7 BUG: Players on the minimap appear in front of the foreground\r
 \r
-- 0.7 BUG: Players on the minimap appear in front of the foreground
\ No newline at end of file
+- 0.7: Farewell has an issue with the radar\r
+\r
+- 0.7: Make self a different color on the radar (maybe just change brightness?)
\ No newline at end of file