From da5e31ce4209ca96c84ae43bbe5a77feda5a2829 Mon Sep 17 00:00:00 2001 From: Izuru Yakumo Date: Mon, 21 Jul 2025 13:47:04 -0300 Subject: [PATCH] Lower the size of frag messages --- code/cgame/cg_event.c | 4 ++-- code/qcommon/q_shared.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/code/cgame/cg_event.c b/code/cgame/cg_event.c index 8cc1113..ae3266d 100644 --- a/code/cgame/cg_event.c +++ b/code/cgame/cg_event.c @@ -227,10 +227,10 @@ static void CG_Obituary( entityState_t *ent ) { } #ifdef MISSIONPACK if (!(cg_singlePlayerActive.integer && cg_cameraOrbit.integer)) { - CG_CenterPrint( s, SCREEN_HEIGHT * 0.30, (int)(BIGCHAR_WIDTH * cg_fragmsgsize.value) ); + CG_CenterPrint( s, SCREEN_HEIGHT * 0.30, (int)(MEDIUMCHAR_WIDTH * cg_fragmsgsize.value) ); } #else - CG_CenterPrint( s, SCREEN_HEIGHT * 0.30, (int)(BIGCHAR_WIDTH * cg_fragmsgsize.value) ); + CG_CenterPrint( s, SCREEN_HEIGHT * 0.30, (int)(MEDIUMCHAR_WIDTH * cg_fragmsgsize.value) ); #endif // print the text message as well diff --git a/code/qcommon/q_shared.h b/code/qcommon/q_shared.h index ab47811..52e4436 100644 --- a/code/qcommon/q_shared.h +++ b/code/qcommon/q_shared.h @@ -335,6 +335,9 @@ extern vec3_t bytedirs[NUMVERTEXNORMALS]; #define SMALLCHAR_WIDTH 8 #define SMALLCHAR_HEIGHT 16 +#define MEDIUMCHAR_WIDTH 12 +#define MEDIUMCHAR_HEIGHT 16 + #define BIGCHAR_WIDTH 16 #define BIGCHAR_HEIGHT 16