[iortcw] 28/152: SP: Shift ammo / clip value left to allow 4 digits
Simon McVittie
smcv at debian.org
Fri Sep 8 10:39:53 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to annotated tag 1.5a
in repository iortcw.
commit c0eefb4babd67c832721b27e4633902ee94191ad
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date: Mon Feb 1 10:17:07 2016 -0500
SP: Shift ammo / clip value left to allow 4 digits
---
SP/code/cgame/cg_newdraw.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/SP/code/cgame/cg_newdraw.c b/SP/code/cgame/cg_newdraw.c
index 2cd27f8..8e12340 100644
--- a/SP/code/cgame/cg_newdraw.c
+++ b/SP/code/cgame/cg_newdraw.c
@@ -649,9 +649,9 @@ static void CG_DrawPlayerAmmoValue( rectDef_t *rect, int font, float scale, vec4
value = CG_Text_Width( num, font, scale, 0 );
if ( type == 0 ) {
// Moved this up a little so it's not on top of the weapon heat bar
- CG_Text_Paint( rect->x + ( rect->w - value ) / 2, -15 + rect->y + rect->h, font, scale, color, num, 0, 0, textStyle );
+ CG_Text_Paint( -12 + rect->x + ( rect->w - value ) / 2, -15 + rect->y + rect->h, font, scale, color, num, 0, 0, textStyle );
} else {
- CG_Text_Paint( rect->x + ( rect->w - value ) / 2, rect->y + rect->h, font, scale, color, num, 0, 0, textStyle );
+ CG_Text_Paint( -12 + rect->x + ( rect->w - value ) / 2, rect->y + rect->h, font, scale, color, num, 0, 0, textStyle );
}
// if(special) { // draw '0' for akimbo guns
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git
More information about the Pkg-games-commits
mailing list