Actor Improvements p3_3

This commit is contained in:
mohabhassan 2019-06-30 23:03:24 +02:00
parent c665915d0f
commit ec4ae7d79d
20 changed files with 322 additions and 503 deletions

View file

@ -741,13 +741,13 @@ float vectoyaw( const vec3_t vec ) {
if (vec[YAW] == 0 && vec[PITCH] == 0) {
yaw = 0;
} else {
if (vec[PITCH]) {
//if (vec[PITCH]) {
yaw = ( atan2( vec[YAW], vec[PITCH]) * 180 / M_PI );
} else if (vec[YAW] > 0) {
yaw = 90;
} else {
yaw = 270;
}
//} else if (vec[YAW] > 0) {
// yaw = 90;
//} else {
// yaw = 270;
//}
if (yaw < 0) {
yaw += 360;
}