From 6443a183513e98c0c0c8230c8ef542061e5b4f16 Mon Sep 17 00:00:00 2001 From: thilo Date: Sat, 6 May 2006 10:54:55 +0000 Subject: Fix remapShader command in cgame and tweak it in ui. git-svn-id: svn://svn.icculus.org/quake3/trunk@773 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/ui/ui_atoms.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'code/ui') diff --git a/code/ui/ui_atoms.c b/code/ui/ui_atoms.c index 760e686..9130e33 100644 --- a/code/ui/ui_atoms.c +++ b/code/ui/ui_atoms.c @@ -345,9 +345,13 @@ qboolean UI_ConsoleCommand( int realTime ) { if (trap_Argc() == 4) { char shader1[MAX_QPATH]; char shader2[MAX_QPATH]; + char shader3[MAX_QPATH]; + Q_strncpyz(shader1, UI_Argv(1), sizeof(shader1)); Q_strncpyz(shader2, UI_Argv(2), sizeof(shader2)); - trap_R_RemapShader(shader1, shader2, UI_Argv(3)); + Q_strncpyz(shader3, UI_Argv(3), sizeof(shader3)); + + trap_R_RemapShader(shader1, shader2, shader3); return qtrue; } } -- cgit v1.2.3