Ticket #2353: work_orders_under_alert.patch
File work_orders_under_alert.patch, 818 bytes (added by , 10 years ago) |
---|
-
binaries/data/mods/public/simulation/components/UnitAI.js
3570 3570 3571 3571 UnitAI.prototype.UpdateWorkOrders = function(type) 3572 3572 { 3573 // Under alert, remembered work orders won't be forgotten 3574 if (this.IsUnderAlert()) 3575 return; 3576 3573 3577 var isWorkType = function(type){ 3574 3578 return (type == "Gather" || type == "Trade" || type == "Repair" || type == "ReturnResource"); 3575 3579 }; 3576 3580 3577 // If we are being re affected to a work order, forgot the previous ones3581 // If we are being re-affected to a work order, forget the previous ones 3578 3582 if (isWorkType(type)) 3579 3583 { 3580 3584 this.workOrders = [];