r4473 - trunk/data/qcsrc/client
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Sep 19 13:38:42 EDT 2008
Author: div0
Date: 2008-09-19 13:38:42 -0400 (Fri, 19 Sep 2008)
New Revision: 4473
Modified:
trunk/data/qcsrc/client/Main.qc
trunk/data/qcsrc/client/hook.qc
Log:
add an engine check (for old clients on svn servers)
Modified: trunk/data/qcsrc/client/Main.qc
===================================================================
--- trunk/data/qcsrc/client/Main.qc 2008-09-19 16:56:02 UTC (rev 4472)
+++ trunk/data/qcsrc/client/Main.qc 2008-09-19 17:38:42 UTC (rev 4473)
@@ -884,25 +884,28 @@
return text;
keys = db_get(binddb, command);
- if (!keys)
+ if(csqc_flags & CSQC_FLAG_READPICTURE)
{
- n = tokenize(findkeysforcommand(command));
- for(j = 0; j < n; ++j)
+ if (!keys)
{
- k = stof(argv(j));
- if(k != -1)
+ n = tokenize(findkeysforcommand(command));
+ for(j = 0; j < n; ++j)
{
- if ("" == keys)
- keys = keynumtostring(k);
- else
- keys = strcat(keys, ", ", keynumtostring(k));
+ k = stof(argv(j));
+ if(k != -1)
+ {
+ if ("" == keys)
+ keys = keynumtostring(k);
+ else
+ keys = strcat(keys, ", ", keynumtostring(k));
- ++l;
- if (sbar_showbinds_limit > 0 && sbar_showbinds_limit >= l) break;
+ ++l;
+ if (sbar_showbinds_limit > 0 && sbar_showbinds_limit >= l) break;
+ }
+
}
-
+ db_put(binddb, command, keys);
}
- db_put(binddb, command, keys);
}
if ("" == keys) {
Modified: trunk/data/qcsrc/client/hook.qc
===================================================================
--- trunk/data/qcsrc/client/hook.qc 2008-09-19 16:56:02 UTC (rev 4472)
+++ trunk/data/qcsrc/client/hook.qc 2008-09-19 17:38:42 UTC (rev 4473)
@@ -67,7 +67,7 @@
tex = "particles/hook_green";
rgb = '.3 1 .3';
}
- if(checkextension("DP_SV_WRITEPICTURE"))
+ if(csqc_flags & CSQC_FLAG_READPICTURE)
Draw_CylindricLine(b, a, 8, tex, 0.25, random(), '1 1 1', 1, DRAWFLAG_NORMAL);
else
Draw_CylindricLine(b, a, 1, "", 0.25, 0, rgb, 1, DRAWFLAG_NORMAL);
More information about the nexuiz-commits
mailing list