From: Ian Jackson Date: Sat, 11 Jul 2020 20:47:29 +0000 (+0100) Subject: message about other piece X-Git-Tag: otter-0.2.0~1386 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=94bcf9874939247211958fcdc66423ece0d90a7a;p=otter.git message about other piece --- diff --git a/templates/script.ts b/templates/script.ts index 0be586ad..48b23578 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -190,7 +190,10 @@ function drag_mousedown(e : MouseEvent) { let p = pieces[piece]!; drag_piece = piece; var held = p.held; - if (held != null && held != us) { return; } + if (held != null && held != us) { + add_log_message('That piece is held by another player.'); + return; + } dcx = e.clientX; dcy = e.clientY;