aboutsummaryrefslogtreecommitdiffstats
path: root/code/ui
diff options
context:
space:
mode:
authorthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-05-06 10:54:55 +0000
committerthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-05-06 10:54:55 +0000
commit6443a183513e98c0c0c8230c8ef542061e5b4f16 (patch)
treee2e6dffb9997e006e919848ce51704f4c9b239b4 /code/ui
parent63ef6a593d17f326939890f852f629b5e4744d6a (diff)
downloadioquake3-aero-6443a183513e98c0c0c8230c8ef542061e5b4f16.tar.gz
ioquake3-aero-6443a183513e98c0c0c8230c8ef542061e5b4f16.zip
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
Diffstat (limited to 'code/ui')
-rw-r--r--code/ui/ui_atoms.c6
1 files changed, 5 insertions, 1 deletions
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;
}
}