Modular rendering system. Patch by use.less01
This might break MSVC builds. I'll take care of it later
This commit is contained in:
parent
8ab958fab9
commit
40dfcee06e
24 changed files with 335 additions and 186 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue