]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
patch from transfusion team to change transfusion hud layout a bit (moves minideathma...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Apr 2004 07:34:02 +0000 (07:34 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Apr 2004 07:34:02 +0000 (07:34 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4096 d7cf8633-e32d-0410-b094-e92efae38249

console.c
sbar.c

index 0a1936024d8064c49e9f062b95e694db9ee6df13..b11015c8aa05d57df2067086aebf8bca7e9feab5 100644 (file)
--- a/console.c
+++ b/console.c
@@ -653,7 +653,10 @@ void Con_DrawNotify (void)
                Cvar_SetValueQuick(&con_notify, 0);
        if (con_notify.integer > MAX_NOTIFYLINES)
                Cvar_SetValueQuick(&con_notify, MAX_NOTIFYLINES);
-       v = 0;
+       if (gamemode == GAME_TRANSFUSION)
+               v = 8;
+       else
+               v = 0;
        for (i= con_current-con_notify.integer+1 ; i<=con_current ; i++)
        {
                if (i < 0)
diff --git a/sbar.c b/sbar.c
index a1628a456c9213d62f2a4aae40bacbd68a898438..cb7eb4fc19cebc224fb2beab594a9ea7d00671bf 100644 (file)
--- a/sbar.c
+++ b/sbar.c
@@ -1027,7 +1027,7 @@ void Sbar_Draw (void)
        else // Quake and others
        {
                sbar_y = vid.conheight - SBAR_HEIGHT;
-               if (cl.gametype == GAME_DEATHMATCH)
+               if (cl.gametype == GAME_DEATHMATCH && gamemode != GAME_TRANSFUSION)
                        sbar_x = 0;
                else
                        sbar_x = (vid.conwidth - 320)/2;
@@ -1133,7 +1133,12 @@ void Sbar_Draw (void)
                }
 
                if (vid.conwidth > 320 && cl.gametype == GAME_DEATHMATCH)
-                       Sbar_MiniDeathmatchOverlay (324, vid.conheight - sb_lines);
+               {
+                       if (gamemode == GAME_TRANSFUSION)
+                               Sbar_MiniDeathmatchOverlay (0, 0);
+                       else
+                               Sbar_MiniDeathmatchOverlay (324, vid.conheight - sb_lines);
+               }
        }
 
        Sbar_ShowFPS();
@@ -1217,8 +1222,16 @@ void Sbar_MiniDeathmatchOverlay (int x, int y)
                i = bound(0, i, scoreboardlines - numlines);
        }
 
-       for (;i < scoreboardlines && y < vid.conheight;i++)
-               y += Sbar_PrintScoreboardItem(cl.scores + fragsort[i], x, y);
+       if (gamemode == GAME_TRANSFUSION)
+       {
+               for (;i < scoreboardlines && x < vid.conwidth;i++)
+                       x += 128 + Sbar_PrintScoreboardItem(cl.scores + fragsort[i], x, y);
+       }
+       else
+       {
+               for (;i < scoreboardlines && y < vid.conheight;i++)
+                       y += Sbar_PrintScoreboardItem(cl.scores + fragsort[i], x, y);
+       }
 }
 
 /*