Commit: 8d3cbb04888dc8216c5f516bb022089c725b5e58 Trac URL: http://developer.wz2100.net/changeset/8d3cbb04888dc8216c5f516bb022089c725b5e58
Author: Cyp <c...@wz2100.net> Date: Fri Nov 19 17:27:50 2010 +0100 Fix multiturret droids trying to look at invalid weapon slots of structures when looking at their targets. src/ai.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/ai.c b/src/ai.c index 7d540b9..4879555 100644 --- a/src/ai.c +++ b/src/ai.c @@ -327,7 +327,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 Warzone2100-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/warzone2100-commits