aboutsummaryrefslogtreecommitdiffstats
path: root/code/cgame
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/cgame
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/cgame')
-rw-r--r--code/cgame/cg_servercmds.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/code/cgame/cg_servercmds.c b/code/cgame/cg_servercmds.c
index 80a1345..abb8d5f 100644
--- a/code/cgame/cg_servercmds.c
+++ b/code/cgame/cg_servercmds.c
@@ -1058,9 +1058,19 @@ static void CG_ServerCommand( void ) {
return;
}
- if ( Q_stricmp (cmd, "remapShader") == 0 ) {
- if (trap_Argc() == 4) {
- trap_R_RemapShader(CG_Argv(1), CG_Argv(2), CG_Argv(3));
+ if ( Q_stricmp (cmd, "remapShader") == 0 )
+ {
+ if (trap_Argc() == 4)
+ {
+ char shader1[MAX_QPATH];
+ char shader2[MAX_QPATH];
+ char shader3[MAX_QPATH];
+
+ Q_strncpyz(shader1, CG_Argv(1), sizeof(shader1));
+ Q_strncpyz(shader2, CG_Argv(2), sizeof(shader2));
+ Q_strncpyz(shader3, CG_Argv(3), sizeof(shader3));
+
+ trap_R_RemapShader(shader1, shader2, shader3);
}
}