0ad/binaries/data/mods/public/simulation/components
wraitii a16e7c0a56 Always leave/reenter the top-most FSM state when SetNextState is called with the current FSM state.
When SetNextState is called with the current state, it will leave and
re-enter so that any relevant cleanup will get called and things work as
expected.
It will prevent possibly awkward code issues in UnitAI, which already
called SetNextStateAlwaysEntering in a number of places to work around
them.

This should most likely have been the default behaviour in the first
place.

Reviewed By: Itms
Differential Revision: https://code.wildfiregames.com/D1488
This was SVN commit r22023.
2019-01-05 09:01:51 +00:00
..
interfaces Fix cheatTimeMultiplier broken by 5b314fc0ac 2018-04-02 20:30:32 +00:00
tests Stop some auras from being applied extra times, don't apply player auras to templates, and fix some linting errors 2018-04-26 00:35:24 +00:00
AIInterface.js some cleanups of ai and petra 2017-10-02 17:49:27 +00:00
AIProxy.js no need to transfer the full entity to the ai when destroyed 2018-03-25 19:17:01 +00:00
AlertRaiser.js Town bell - use matching classes, add a market alert 2018-02-24 04:35:26 +00:00
Armour.js Make the ai aware of invulnerable entities 2018-01-28 19:53:29 +00:00
Attack.js Expose INVALID_PLAYER to the JS simulation and use it instead of -1 for consistency with the C++ counterpart. 2018-01-22 01:02:29 +00:00
AttackDetection.js Expose INVALID_PLAYER to the JS simulation and use it instead of -1 for consistency with the C++ counterpart. 2018-01-22 01:02:29 +00:00
AuraManager.js Fix AuraManager OOS on rejoin following c90d72deb5 / D1108. 2018-01-25 16:45:58 +00:00
Auras.js Stop some auras from being applied extra times, don't apply player auras to templates, and fix some linting errors 2018-04-26 00:35:24 +00:00
Barter.js Remove a warning about missing markets when the player has issued a barter command just before losing the market, fixes #3645. 2018-04-16 01:04:53 +00:00
BattleDetection.js Some JS component cleanup. 2015-11-28 08:27:38 +00:00
Builder.js Add a {native} civ replacement in buildable and trainable template names 2017-12-07 18:33:08 +00:00
BuildingAI.js Allow attack and attack_impact sounds for multiple attacks 2017-10-28 16:52:37 +00:00
BuildRestrictions.js Add a couple of string manipulation functions to globalscripts. 2018-02-02 01:37:39 +00:00
Capturable.js Don't send MT_PlayerDefeated and MT_PlayerWon to components of entities who subscribed locally but aren't the playerentity of the affected player, equal to D733. 2018-04-13 15:52:41 +00:00
CeasefireManager.js Add a GUI notification when the ceasefire ended so that devs and modders can do fancy things with that event and 2017-03-02 18:02:59 +00:00
Cost.js Add a time multiplier for AI levels 2018-03-03 10:05:04 +00:00
Damage.js Expose INVALID_PLAYER to the JS simulation and use it instead of -1 for consistency with the C++ counterpart. 2018-01-22 01:02:29 +00:00
DeathDamage.js Expose INVALID_PLAYER to the JS simulation and use it instead of -1 for consistency with the C++ counterpart. 2018-01-22 01:02:29 +00:00
EndGameManager.js Spawn proportionately less gaia attackers when players become defeated. 2018-04-15 16:47:51 +00:00
EntityLimits.js Fix an issue with upgrade and entity limits. 2017-10-29 08:03:43 +00:00
Fogging.js fix miraged properties in GuiInterface changes from 30f0e80dae 2018-01-20 15:09:42 +00:00
Formation.js Add an IsInWorld check to Formation 2018-04-07 17:18:16 +00:00
FormationAttack.js Remove formation minimum range and stop formation when in member state 2018-04-12 00:27:03 +00:00
Foundation.js Set relative hitpoints for completed foundations 2018-04-09 03:02:48 +00:00
Garrisonable.js Option to disable garrisoning of heroes in regicide gamemode. 2017-05-22 01:18:51 +00:00
GarrisonHolder.js fix b0d14419ac for turrets directly garrisoned from OutWorld 2018-04-04 16:23:17 +00:00
Gate.js Fix mirages (and any other entity that blocks something but not BlockConstruction) blocking foundation construction following 29492badb7 / D21. 2018-03-26 15:18:53 +00:00
Guard.js Expose INVALID_PLAYER to the JS simulation and use it instead of -1 for consistency with the C++ counterpart. 2018-01-22 01:02:29 +00:00
GuiInterface.js Add a null stance in UnitAI to be used by the AI or trigger scripts 2018-03-10 19:12:23 +00:00
Heal.js Use only one getter for range overlays instead of three to four in the Heal and Auras component. 2017-12-10 03:08:05 +00:00
Health.js Fix units not being able to play sounds when walking and running 2018-02-24 18:13:03 +00:00
Identity.js Correct Mauryans into Mauryas. 2019-01-02 14:56:31 +00:00
Loot.js Allow loot to be modified by technologies and auras 2017-11-15 22:56:04 +00:00
Looter.js Merge resource agnostic branch by s0600204, fixes #3934. 2016-11-19 14:29:45 +00:00
Market.js Expose INVALID_PLAYER to the JS simulation and use it instead of -1 for consistency with the C++ counterpart. 2018-01-22 01:02:29 +00:00
Mirage.js Fix OOS on rejoin by cloning in Mirage 2018-03-10 00:44:32 +00:00
MotionBall.js
Pack.js Add a time multiplier for AI levels 2018-03-03 10:05:04 +00:00
Player.js Don't send MT_PlayerDefeated and MT_PlayerWon to components of entities who subscribed locally but aren't the playerentity of the affected player, equal to D733. 2018-04-13 15:52:41 +00:00
PlayerManager.js Fix gaia units ignoring players without CCs. 2018-04-24 12:46:59 +00:00
ProductionQueue.js fix error when using salad-bowl on gaia, fixes #4603 2018-04-04 19:27:19 +00:00
Promotion.js Set isGarrisoned when unit is autogarrisoned, remove autogarrison state 2018-03-26 23:20:34 +00:00
RallyPoint.js Spawn units in rally point direction 2018-02-07 20:58:07 +00:00
RangeOverlayManager.js Revert unintentional function rename in 40cc3aaa09. 2018-01-22 06:02:52 +00:00
Repairable.js Avoid NaN in Foundation and Repairable 2018-02-16 21:56:35 +00:00
ResourceDropsite.js Remove silencing of resource-not-found errors (that were introduced with an enabled property in the JSON resource files that got removed later). Refs #3934. 2016-11-21 17:32:17 +00:00
ResourceGatherer.js Fix cheatTimeMultiplier broken by 5b314fc0ac 2018-04-02 20:30:32 +00:00
ResourceSupply.js Expose INVALID_PLAYER to the JS simulation and use it instead of -1 for consistency with the C++ counterpart. 2018-01-22 01:02:29 +00:00
ResourceTrickle.js Actually remove trailing whitespace for non-header files as well. 2016-11-23 13:02:58 +00:00
Settlement.js
SkirmishReplacer.js Finally fix typo reported in db1ec0f7f7/b4d6353a08 (3rd time lucky) 2018-03-13 22:14:39 +00:00
Sound.js Allow attack and attack_impact sounds for multiple attacks 2017-10-28 16:52:37 +00:00
StatisticsTracker.js Fix stats of peak percentage of map controlled 2018-04-14 09:43:14 +00:00
StatusBars.js Diplomacy Colors 2018-02-03 14:17:31 +00:00
TechnologyManager.js Expose INVALID_PLAYER to the JS simulation and use it instead of -1 for consistency with the C++ counterpart. 2018-01-22 01:02:29 +00:00
TerritoryDecay.js Expose INVALID_PLAYER to the JS simulation and use it instead of -1 for consistency with the C++ counterpart. 2018-01-22 01:02:29 +00:00
TerritoryDecayManager.js Cache a list of TerritoryDecay components in the TerritoryDecayManager instead of retrieving it each time 2017-10-09 19:38:56 +00:00
Timer.js Timer component cleanup. Patch by Stan, fixes #4158. 2016-11-22 12:28:22 +00:00
Trader.js Unify trade gain computation between simulation and ai 2017-10-21 08:40:11 +00:00
TrainingRestrictions.js Sort and update help list of category build and training restrictions. Reviewed by elexis. 2017-04-26 13:54:41 +00:00
Trigger.js Handle entity renames in regicide 2019-01-04 20:09:28 +00:00
TriggerPoint.js PlayerManager GetAllPlayers helper function to remove some duplication. 2017-12-08 20:39:40 +00:00
UnitAI.js Always leave/reenter the top-most FSM state when SetNextState is called with the current FSM state. 2019-01-05 09:01:51 +00:00
UnitMotionFlying.js Add Math.square to compute the square of a number without the need to repeat the term, without using the slower Math.pow. 2017-10-22 20:46:41 +00:00
Upgrade.js Add a time multiplier for AI levels 2018-03-03 10:05:04 +00:00
ValueModificationManager.js Actually remove trailing whitespace for non-header files as well. 2016-11-23 13:02:58 +00:00
Visibility.js Revert a wrongly committed WIP change. 2015-09-18 19:54:19 +00:00
VisionSharing.js Expose INVALID_PLAYER to the JS simulation and use it instead of -1 for consistency with the C++ counterpart. 2018-01-22 01:02:29 +00:00
WallPiece.js Amend wallpiece lengths in preparation for D900. 2017-12-05 02:39:50 +00:00
WallSet.js Remove civ-specific hardcoding in rmgen wall-placement script. 2017-12-10 03:12:54 +00:00
Wonder.js Fix documentation of non system component. 2017-03-24 07:09:28 +00:00