summaryrefslogtreecommitdiff
path: root/ui.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-23 15:02:15 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:19:38 +0100
commit14848399ffa402370274e2e45b4600c0fcb0e1f7 (patch)
treee03d26877c19b2b45d0be51511e13a6389eaf885 /ui.js
parentba49b45691c35d4b4a1a484f0b8c26e2dcbad206 (diff)
downloadcrusader-rex-14848399ffa402370274e2e45b4600c0fcb0e1f7.tar.gz
crusader: Hide tooltip on pool blocks.
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui.js b/ui.js
index f590fde..6c99613 100644
--- a/ui.js
+++ b/ui.js
@@ -103,7 +103,8 @@ function block_owner(who) { return BLOCKS[who].owner; }
function on_focus_map_block(evt) {
let info = BLOCKS[evt.target.block];
- if (info.owner == player || info.owner == ASSASSINS) {
+ let where = game.location[evt.target.block];
+ if ((info.owner == player || info.owner == ASSASSINS) && where != S_POOL && where != F_POOL) {
let text = info.name + " ";
if (info.move)
text += info.move + "-";