Commit a33c844 1 parent e922186 commit a33c844 Copy full SHA for a33c844
File tree 1 file changed +15
-3
lines changed
1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -791,17 +791,28 @@ void drawNetdemo() {
791
791
}
792
792
}
793
793
794
- static void drawLevelStats () {
794
+ static void drawLevelStats ()
795
+ {
795
796
if (!G_IsCoopGame ())
796
797
return ;
797
798
798
799
if (AM_ClassicAutomapVisible () || AM_OverlayAutomapVisible ())
799
800
return ;
800
801
802
+ unsigned int xscale, yscale;
803
+ xscale = hud_scale ? CleanXfac : 1 ;
804
+ int num_ax = 0 , text_ax = 0 ;
805
+ if (hud_anchoring.value () < 1 .0f )
806
+ {
807
+ num_ax = (((float )I_GetSurfaceWidth () - (float )I_GetSurfaceHeight () * 4 .0f / 3 .0f ) / 2 .0f ) * (1 .0f - hud_anchoring.value ());
808
+ num_ax = MAX (0 , num_ax);
809
+ text_ax = num_ax / xscale;
810
+ }
811
+
801
812
std::string line;
802
813
const int LINE_SPACING = V_LineHeight () + 1 ;
803
814
int font_offset = 0 ;
804
- int x = 2 , y = R_StatusBarVisible () ? statusBarY () + 1 : 33 ;
815
+ unsigned int x = R_StatusBarVisible () ? 2 : (text_ax + 10 ) , y = R_StatusBarVisible () ? statusBarY () + 1 : 44 ;
805
816
806
817
if (hud_extendedinfo == 1 || hud_extendedinfo == 3 )
807
818
{
@@ -819,7 +830,8 @@ static void drawLevelStats() {
819
830
}
820
831
else
821
832
{
822
- if (hud_extendedinfo >= 3 || !R_StatusBarVisible ()){
833
+ if (hud_extendedinfo >= 3 || !R_StatusBarVisible ())
834
+ {
823
835
std::string killrow;
824
836
std::string itemrow;
825
837
std::string secretrow;
You can’t perform that action at this time.
0 commit comments