Commit: 701abfdaa10bcfc2495a6c09f8cc765e9457eab8 Trac URL: http://developer.wz2100.net/changeset/701abfdaa10bcfc2495a6c09f8cc765e9457eab8
Author: Cyp <[email protected]> Date: Fri Nov 19 17:23:05 2010 +0100 Fix multiturret droids trying to look at invalid weapon slots of structures when looking at their targets. Fixes a desynch when multiturreted droids are present. src/ai.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/ai.c b/src/ai.c index cc91e4f..37656fd 100644 --- a/src/ai.c +++ b/src/ai.c @@ -627,7 +627,7 @@ SDWORD aiBestNearestTarget(DROID *psDroid, BASE_OBJECT **ppsObj, int weapon_slot psTarget = targetInQuestion; } } - else if (psStruct->asWeaps[weapon_slot].nStat > 0) + else if (psStruct->asWeaps[0].nStat > 0) { // structure with weapons - go for this psTarget = targetInQuestion; ------------------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Warzone2100-commits mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/warzone2100-commits
