Added locomotion state checking to commands

This commit is contained in:
Treeku
2014-06-04 05:42:13 +01:00
parent 784e5e5c40
commit bd12b4c50a
+4 -6
View File
@@ -105,14 +105,12 @@ public class CommandService implements INetworkDispatch {
}
}
// This SHOULD be invalid locomotions but we don't track these currently.
// Postures are the best we can do.
for (byte posture : command.getInvalidPostures()) {
if (actor.getPosture() == posture) {
//return false;
for (byte locomotion : command.getInvalidLocomotions()) {
if (actor.getLocomotion() == locomotion) {
return false;
}
}
switch (command.getTargetType()) {
case 0: // Target Not Used For This Command
break;