This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit 91859f7fa84fc673418608b04a89cc95d0f3bbb7
Author: m4n4t4...@gmail.com 
<m4n4t4...@gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date:   Thu Feb 19 15:03:37 2015 +0000

    SP: Fix AICast_ScriptAction_FireAtTarget
---
 SP/code/game/ai_cast_script_actions.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/SP/code/game/ai_cast_script_actions.c 
b/SP/code/game/ai_cast_script_actions.c
index e4539bf..32f00ec 100644
--- a/SP/code/game/ai_cast_script_actions.c
+++ b/SP/code/game/ai_cast_script_actions.c
@@ -1609,8 +1609,7 @@ qboolean AICast_ScriptAction_FireAtTarget( cast_state_t 
*cs, char *params ) {
        gentity_t   *ent;
        vec3_t vec, org, src;
        char *pString, *token;
-       float diff;
-       int i;
+       int i, diff;
 
        pString = params;
 
@@ -1656,7 +1655,7 @@ qboolean AICast_ScriptAction_FireAtTarget( cast_state_t 
*cs, char *params ) {
        VectorNormalize( vec );
        vectoangles( vec, cs->ideal_viewangles );
        for ( i = 0; i < 2; i++ ) {
-               diff = fabs( AngleDifference( cs->bs->cur_ps.viewangles[i], 
cs->ideal_viewangles[i] ) );
+               diff = fabs( AngleDifference( cs->viewangles[i], 
cs->ideal_viewangles[i] ) );
                if ( VectorCompare( vec3_origin, ent->s.pos.trDelta ) ) {
                        if ( diff ) {
                                return qfalse;  // not facing yet

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/iortcw.git

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to