summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Millwood <thebenmachine@gmail.com>2009-10-03 12:01:44 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:37 +0000
commit1816219a5742bf0f986aedb176c531c297b8ea51 (patch)
tree3430c4d6f6b1c0ad5c22a8ad6026918332783a5b
parent534d680496218529c46367170bfa8b0fab3b98e3 (diff)
* Right-align location field
* Default teamoverlay off * Make generate-diff.sh slightly more portable
-rw-r--r--src/game/g_client.c2
-rw-r--r--ui/tremulous_common_hud.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c
index 726e8b54..eefc266b 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -1110,7 +1110,7 @@ void ClientUserinfoChanged( int clientNum )
// teamInfo
s = Info_ValueForKey( userinfo, "teamoverlay" );
- if( !*s || atoi( s ) != 0 )
+ if( atoi( s ) != 0 )
client->pers.teamInfo = qtrue;
else
client->pers.teamInfo = qfalse;
diff --git a/ui/tremulous_common_hud.h b/ui/tremulous_common_hud.h
index b01da14e..e9ddf06c 100644
--- a/ui/tremulous_common_hud.h
+++ b/ui/tremulous_common_hud.h
@@ -111,10 +111,12 @@ itemDef
itemDef
{
name "location"
- rect (STAT_X-20) ((4*BORDER)+(5*STAT_H)) (STAT_W+25) STAT_H
+ rect (STAT_X-55) ((4*BORDER)+(5*STAT_H)) (STAT_W+60) STAT_H
+ aspectBias ALIGN_RIGHT
visible MENU_TRUE
decoration
forecolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 1
+ textalign ALIGN_RIGHT
textscale 0.3
ownerdraw CG_PLAYER_LOCATION
}