diff options
author | Tuck Therebelos <snares@users.sourceforge.net> | 2009-04-30 00:09:17 +0400 |
---|---|---|
committer | Tuck Therebelos <snares@users.sourceforge.net> | 2009-04-30 00:09:44 +0400 |
commit | 5c4d8c551320c7956c734635a5c7bea68be31296 (patch) | |
tree | 7d8d6149a12889ca7d335908e4f2d6c0aff8d082 /plugins/cod4 | |
parent | cff157face6e7cf465b5b686ef7dd4e09796d582 (diff) |
Add back dummy top vector to Quake based games
Diffstat (limited to 'plugins/cod4')
-rw-r--r-- | plugins/cod4/cod4.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/cod4/cod4.cpp b/plugins/cod4/cod4.cpp index b3ac23216..415a76248 100644 --- a/plugins/cod4/cod4.cpp +++ b/plugins/cod4/cod4.cpp @@ -108,6 +108,8 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa for (int i=0;i<3;i++) avatar_pos[i]/=40.0f; // Scale to meters avatar_pos[0]*=(-1.0f); // Convert right to left handed + + top[2] = -1; // Head movement is in front vector // Calculate view unit vector /* |