Modular rendering system. Patch by use.less01

This might break MSVC builds. I'll take care of it later
This commit is contained in:
Thilo Schulz committed 2011-08-01 01:19:55 +00:00
1 parent 8ab958fab9
commit 40dfcee06e
24 files changed
+335 -186

No files matched your search

-31
View File
@@ -3271,37 +3271,6 @@ void Com_Shutdown (void) {
}
//------------------------------------------------------------------------
/*
=====================
Q_acos
the msvc acos doesn't always return a value between -PI and PI:
int i;
i = 1065353246;
acos(*(float*) &i) == -1.#IND0
This should go in q_math but it is too late to add new traps
to game and ui
=====================
*/
float Q_acos(float c) {
float angle;
angle = acos(c);
if (angle > M_PI) {
return (float)M_PI;
}
if (angle < -M_PI) {
return (float)M_PI;
}
return angle;
}
/*
===========================================
command line completion