1.1 --- a/core/smn_console.cpp Tue Nov 11 02:21:25 2008 -0800
1.2 +++ b/core/smn_console.cpp Wed Nov 12 23:14:49 2008 -0600
1.3 @@ -339,6 +339,7 @@
1.4
1.5 pConVar->SetValue(params[2]);
1.6
1.7 +#ifndef ORANGEBOX_BUILD
1.8 /* Should we replicate it? */
1.9 if (params[3] && IsFlagSet(pConVar, FCVAR_REPLICATED))
1.10 {
1.11 @@ -350,6 +351,7 @@
1.12 {
1.13 NotifyConVar(pConVar);
1.14 }
1.15 +#endif
1.16
1.17 return 1;
1.18 }
1.19 @@ -386,6 +388,7 @@
1.20 float value = sp_ctof(params[2]);
1.21 pConVar->SetValue(value);
1.22
1.23 +#ifndef ORANGEBOX_BUILD
1.24 /* Should we replicate it? */
1.25 if (params[3] && IsFlagSet(pConVar, FCVAR_REPLICATED))
1.26 {
1.27 @@ -397,6 +400,7 @@
1.28 {
1.29 NotifyConVar(pConVar);
1.30 }
1.31 +#endif
1.32
1.33 return 1;
1.34 }
1.35 @@ -435,6 +439,7 @@
1.36
1.37 pConVar->SetValue(value);
1.38
1.39 +#ifndef ORANGEBOX_BUILD
1.40 /* Should we replicate it? */
1.41 if (params[3] && IsFlagSet(pConVar, FCVAR_REPLICATED))
1.42 {
1.43 @@ -446,6 +451,7 @@
1.44 {
1.45 NotifyConVar(pConVar);
1.46 }
1.47 +#endif
1.48
1.49 return 1;
1.50 }
1.51 @@ -464,17 +470,19 @@
1.52
1.53 pConVar->Revert();
1.54
1.55 +#ifndef ORANGEBOX_BUILD
1.56 /* Should we replicate it? */
1.57 - if (params[2] && IsFlagSet(pConVar, FCVAR_REPLICATED))
1.58 + if (params[3] && IsFlagSet(pConVar, FCVAR_REPLICATED))
1.59 {
1.60 ReplicateConVar(pConVar);
1.61 }
1.62
1.63 /* Should we notify clients? */
1.64 - if (params[3] && IsFlagSet(pConVar, FCVAR_NOTIFY))
1.65 + if (params[4] && IsFlagSet(pConVar, FCVAR_NOTIFY))
1.66 {
1.67 NotifyConVar(pConVar);
1.68 }
1.69 +#endif
1.70
1.71 return 1;
1.72 }