From 558d3c0cdbbb908b19b7363e17ed7367a3297115 Mon Sep 17 00:00:00 2001 From: caewok Date: Sat, 6 Apr 2024 10:16:00 -0700 Subject: [PATCH 1/2] Fix for #65 - token movement display If the token HUD has not been used, the flag for movement choice might not be defined. Catch this and default to AUTO. --- scripts/token_hud.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/token_hud.js b/scripts/token_hud.js index 291c399..8111ade 100644 --- a/scripts/token_hud.js +++ b/scripts/token_hud.js @@ -55,7 +55,7 @@ PATCHES.MOVEMENT_SELECTION.HOOKS = { renderTokenHUD }; * @type {MOVEMENT_TYPE} */ function movementType() { - let selectedMovement = this.document.getFlag(MODULE_ID, FLAGS.MOVEMENT_SELECTION); + let selectedMovement = this.document.getFlag(MODULE_ID, FLAGS.MOVEMENT_SELECTION) ?? MOVEMENT_TYPES.AUTO; if ( selectedMovement === MOVEMENT_TYPES.AUTO ) return determineMovementType(this); return keyForValue(MOVEMENT_TYPES, selectedMovement); } From 4664a223e9c6601c4899783b0c3a99d18ddded57 Mon Sep 17 00:00:00 2001 From: caewok Date: Sat, 6 Apr 2024 10:17:10 -0700 Subject: [PATCH 2/2] Update changelog --- Changelog.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Changelog.md b/Changelog.md index 65160bf..08c3fe5 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,3 +1,6 @@ +# 0.8.12 +Fix for speed highlighting not working if the Token HUD has not been used. Closes #65. + # 0.8.11 ## New features