From 9972e1e87106c90907d83f3538c4f20ca7c40961 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Wed, 1 Apr 2020 16:26:07 +0200 Subject: Fuck the text up too --- src/cgame/cg_draw.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/cgame/cg_draw.c') diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c index 379a95d..e00494c 100644 --- a/src/cgame/cg_draw.c +++ b/src/cgame/cg_draw.c @@ -143,6 +143,20 @@ void CG_Text_PaintChar( float x, float y, float width, float height, float scale w = width * scale; h = height * scale; CG_AdjustFrom640( &x, &y, &w, &h ); + + if( rand( ) % 50 == 0 ) + { + x += random( ) * 30; + y += random( ) * 30; + } + + if( rand( ) % 100 == 0 ) + { + h *= random( ) * 9; + w *= random( ) * 9; + } + + trap_R_DrawStretchPic( x, y, w, h, s, t, s2, t2, hShader ); } -- cgit