From bc4e75c75cf14f0b59c8a86a80abc30437901e5f Mon Sep 17 00:00:00 2001 From: Freagarach Date: Thu, 17 Dec 2020 12:56:21 +0000 Subject: [PATCH] Reverts 2603703d66 Either the default handlers _are_ needed or we don't care much. But removing (at least the motion one) may give errors. This was SVN commit r24403. --- .../public/simulation/components/UnitAI.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/binaries/data/mods/public/simulation/components/UnitAI.js b/binaries/data/mods/public/simulation/components/UnitAI.js index 0945b9dda4..22902f85e1 100644 --- a/binaries/data/mods/public/simulation/components/UnitAI.js +++ b/binaries/data/mods/public/simulation/components/UnitAI.js @@ -161,6 +161,16 @@ UnitAI.prototype.UnitFsmSpec = { // Default event handlers: + "MovementUpdate": function(msg) { + // ignore spurious movement messages + // (these can happen when stopping moving at the same time + // as switching states) + }, + + "ConstructionFinished": function(msg) { + // ignore uninteresting construction messages + }, + "LosRangeUpdate": function(msg) { // Ignore newly-seen units by default. }, @@ -181,10 +191,18 @@ UnitAI.prototype.UnitFsmSpec = { // ignore }, + "PackFinished": function(msg) { + // ignore + }, + "PickupCanceled": function(msg) { // ignore }, + "TradingCanceled": function(msg) { + // ignore + }, + "GuardedAttacked": function(msg) { // ignore },