summaryrefslogtreecommitdiff
path: root/src/cgame/cg_draw.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2009-10-16 22:20:49 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:52 +0000
commit9a60b0c6c2252e95caa35e4b00b310b5e628371b (patch)
treee698b603ca92b2093b06071be602c734b40d1fec /src/cgame/cg_draw.c
parentdb2626a08e4d39c58890ba7e3f7c4470e7c0b38b (diff)
* (bug #4265) Fix CG_WorldToScreen to accomdate cg_viewsize
* (bug #4265) Clip health bars to the cg_viewsize viewport
Diffstat (limited to 'src/cgame/cg_draw.c')
-rw-r--r--src/cgame/cg_draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c
index cd6d7cfc..2cb4e305 100644
--- a/src/cgame/cg_draw.c
+++ b/src/cgame/cg_draw.c
@@ -36,7 +36,7 @@ static void CG_AlignText( rectDef_t *rect, const char *text, float scale,
float *x, float *y )
{
float tx, ty;
-
+
if( scale > 0.0f )
{
w = UI_Text_Width( text, scale, 0 );
@@ -1318,7 +1318,7 @@ static void CG_DrawFollow( rectDef_t *rect, float text_x, float text_y,
{
float tx, ty;
- if( cg.snap->ps.pm_flags & PMF_FOLLOW )
+ if( cg.snap && cg.snap->ps.pm_flags & PMF_FOLLOW )
{
char buffer[ MAX_STRING_CHARS ];