[ioquake3] 23/34: Make map names in q3_ui map select menu be uppercase
Simon McVittie
smcv at debian.org
Fri Sep 8 10:33:23 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to annotated tag debian/1.36+u20170908+dfsg1-1
in repository ioquake3.
commit 2c22ead0782648e1ff2d5d379d5ae021ea33389c
Author: Zack Middleton <zack at cloemail.com>
Date: Sat Sep 2 17:35:09 2017 -0500
Make map names in q3_ui map select menu be uppercase
Makes map names match on both pages of start server menu.
---
code/q3_ui/ui_startserver.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/code/q3_ui/ui_startserver.c b/code/q3_ui/ui_startserver.c
index b4883d4..505f877 100644
--- a/code/q3_ui/ui_startserver.c
+++ b/code/q3_ui/ui_startserver.c
@@ -331,6 +331,7 @@ static void StartServer_LevelshotDraw( void *self ) {
int h;
int n;
const char *info;
+ char mapname[ MAX_NAMELENGTH ];
b = (menubitmap_s *)self;
@@ -366,7 +367,9 @@ static void StartServer_LevelshotDraw( void *self ) {
n = s_startserver.page * MAX_MAPSPERPAGE + b->generic.id - ID_PICTURES;
info = UI_GetArenaInfoByNumber( s_startserver.maplist[ n ]);
- UI_DrawString( x, y, Info_ValueForKey( info, "map" ), UI_CENTER|UI_SMALLFONT, color_orange );
+ Q_strncpyz( mapname, Info_ValueForKey( info, "map"), MAX_NAMELENGTH );
+ Q_strupr( mapname );
+ UI_DrawString( x, y, mapname, UI_CENTER|UI_SMALLFONT, color_orange );
x = b->generic.x;
y = b->generic.y;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git
More information about the Pkg-games-commits
mailing list