Did a bit of testing; all of the non weapon units were affected by this
problem, but really this wouldn't have been a big deal anyway since they
*still* couldn't attack things. (They'd just act like the bugged repair
units and would make the sfx for wheels/tracks without moving) If memory
serves the original behavior for them was just to follow the commander
around anyway, so this doesn't IMHO break anything.

Hikaru-orly
Tim McGrath
Index: src/order.c
===================================================================
--- src/order.c (revision 535)
+++ src/order.c (working copy)
@@ -1218,7 +1218,8 @@
 
                // get units in a command group to attack the commanders target
                if ((psDroid->droidType != DROID_COMMAND) &&
-                       psDroid->psGroup && (psDroid->psGroup->type == 
GT_COMMAND))
+                       psDroid->psGroup && (psDroid->psGroup->type == 
GT_COMMAND) &&
+                       (psDroid->numWeaps > 0))
                {
                        if ((psDroid->psGroup->psCommander->action == 
DACTION_ATTACK) &&
                                
(psDroid->psGroup->psCommander->psActionTarget[0] != NULL))
_______________________________________________
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev

Reply via email to