From: MirceaKitsune Date: Sat, 17 Mar 2012 10:24:33 +0000 (+0200) Subject: Fix the first radar bug, causing the foreground / background images to appear stretch... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dd61a679e676c8b987019ef8b0c59145f7911e57;p=voretournament%2Fvoretournament.git Fix the first radar bug, causing the foreground / background images to appear stretched when the minimap itself was stretched --- diff --git a/data/qcsrc/client/radar.qc b/data/qcsrc/client/radar.qc index f266d297..2808d339 100644 --- a/data/qcsrc/client/radar.qc +++ b/data/qcsrc/client/radar.qc @@ -65,11 +65,11 @@ void draw_radar_background(float ca, float bg, float fg) if(bg > 0) { - R_BeginPolygon("gfx/hud/bg_radar.tga", DRAWFLAG_NORMAL); - R_PolygonVertex(pos1, yinvert(mi_pictexcoord1), '1 1 1', bg); - R_PolygonVertex(pos2, yinvert(mi_pictexcoord2), '1 1 1', bg); - R_PolygonVertex(pos3, yinvert(mi_pictexcoord3), '1 1 1', bg); - R_PolygonVertex(pos4, yinvert(mi_pictexcoord0), '1 1 1', bg); + R_BeginPolygon("gfx/hud/bg_radar.tga", 0); + R_PolygonVertex(pos1, yinvert('0 1 0'), '1 1 1', bg); + R_PolygonVertex(pos2, yinvert('1 1 0'), '1 1 1', bg); + R_PolygonVertex(pos3, yinvert('1 0 0'), '1 1 1', bg); + R_PolygonVertex(pos4, yinvert('0 0 0'), '1 1 1', bg); R_EndPolygon(); } @@ -96,18 +96,18 @@ void draw_radar_background(float ca, float bg, float fg) if(fg > 0) { - R_BeginPolygon("gfx/hud/fg_radar.tga", DRAWFLAG_NORMAL); - R_PolygonVertex(pos1, yinvert(mi_pictexcoord1), '1 1 1', fg); - R_PolygonVertex(pos2, yinvert(mi_pictexcoord2), '1 1 1', fg); - R_PolygonVertex(pos3, yinvert(mi_pictexcoord3), '1 1 1', fg); - R_PolygonVertex(pos4, yinvert(mi_pictexcoord0), '1 1 1', fg); + R_BeginPolygon("gfx/hud/fg_radar.tga", 0); + R_PolygonVertex(pos1, yinvert('0 1 0'), '1 1 1', fg); + R_PolygonVertex(pos2, yinvert('1 1 0'), '1 1 1', fg); + R_PolygonVertex(pos3, yinvert('1 0 0'), '1 1 1', fg); + R_PolygonVertex(pos4, yinvert('0 0 0'), '1 1 1', fg); R_EndPolygon(); - R_BeginPolygon("gfx/hud/fg_radar_team.tga", DRAWFLAG_NORMAL); - R_PolygonVertex(pos1, yinvert(mi_pictexcoord1), rgb, fg); - R_PolygonVertex(pos2, yinvert(mi_pictexcoord2), rgb, fg); - R_PolygonVertex(pos3, yinvert(mi_pictexcoord3), rgb, fg); - R_PolygonVertex(pos4, yinvert(mi_pictexcoord0), rgb, fg); + R_BeginPolygon("gfx/hud/fg_radar_team.tga", 0); + R_PolygonVertex(pos1, yinvert('0 1 0'), rgb, fg); + R_PolygonVertex(pos2, yinvert('1 1 0'), rgb, fg); + R_PolygonVertex(pos3, yinvert('1 0 0'), rgb, fg); + R_PolygonVertex(pos4, yinvert('0 0 0'), rgb, fg); R_EndPolygon(); } } diff --git a/docs/TODO.txt b/docs/TODO.txt index 1226ea8e..53a0caff 100644 --- a/docs/TODO.txt +++ b/docs/TODO.txt @@ -146,6 +146,8 @@ - 0.7: Bots should digest items even at 0 skill -- 0.7 BUG: The minimap foreground appears stretched on Desertfactory +- 0.7 BUG: Players on the minimap appear in front of the foreground -- 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 + +- 0.7: Make self a different color on the radar (maybe just change brightness?) \ No newline at end of file