Fixed #2335 (probably)
This commit is contained in:
@@ -282,6 +282,11 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
|||||||
controller.updateUnit();
|
controller.updateUnit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//clear controller when it becomes invalid
|
||||||
|
if(!controller.isValidController()){
|
||||||
|
resetController();
|
||||||
|
}
|
||||||
|
|
||||||
//do not control anything when deactivated
|
//do not control anything when deactivated
|
||||||
if(deactivated){
|
if(deactivated){
|
||||||
controlWeapons(false, false);
|
controlWeapons(false, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user