]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/client/old/helpers.c
I did not want to do that. Sorry, disk space. Some admin better get rid of that mess.
[divverent/nexuiz.git] / data / qcsrc / client / old / helpers.c
1 void RegisterCvar (string name, string defvalue, float save)\r
2 {\r
3         if(registercvar(name, defvalue) && save)\r
4                 localcmd("seta ", name, " ", cvar_string(name), "\n");\r
5 }\r
6 \r
7 float DotProduct (vector x, vector y)\r
8 {\r
9         // LordHavoc: why does this function exist?  vec*vec in QC is dotproduct\r
10         return x*y;\r
11         //return (x_x*y_x + x_y*y_y + x_z*y_z);\r
12 }\r
13 \r
14 // dummy function to shut up compiler warnings\r
15 void foo()\r
16 {\r
17         self.alpha = 0;\r
18         self.renderflags = 0;\r
19         self = NULL;\r
20 }\r