summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2020-04-01 16:26:07 +0200
committerPaweł Redman <pawel.redman@gmail.com>2020-04-01 16:26:07 +0200
commit9972e1e87106c90907d83f3538c4f20ca7c40961 (patch)
tree342c1b04811a11e3af93f6c8fe567b60bc837cce
parent49b9f7efa8d46426ade115f024211491429e0563 (diff)
Fuck the text up too
-rw-r--r--src/cgame/cg_draw.c14
1 files changed, 14 insertions, 0 deletions
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 );
}