mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-24 05:01:40 +00:00
Fix remapShader command in cgame and tweak it in ui.
This commit is contained in:
parent
63d2010914
commit
5ebb75e651
2 changed files with 18 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue