]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/client/helpers.c
fixed some bugs and design flaws in the csqc code, it works better now
[divverent/nexuiz.git] / data / qcsrc / client / helpers.c
1 void RegisterCvar (string name, string defvalue, float save)
2 {
3         if(registercvar(name, defvalue) && save)
4                 localcmd("seta ", name, " ", cvar_string(name), "\n");
5 }
6
7 float DotProduct (vector x, vector y)
8 {
9         // LordHavoc: why does this function exist?  vec*vec in QC is dotproduct
10         return x*y;
11         //return (x_x*y_x + x_y*y_y + x_z*y_z);
12 }
13
14 // dummy function to shut up compiler warnings
15 void foo()
16 {
17         self.alpha = 0;
18         self.renderflags = 0;
19         self = NULL;
20 }