From 1b38f8a047d2a43b11c7eafdf84660c5345e29fb Mon Sep 17 00:00:00 2001 From: ntr Date: Fri, 7 Jun 2019 13:05:43 +1000 Subject: [PATCH] defensive arrows --- WORKLOG.md | 1 - client/src/components/targeting.arrows.jsx | 1 + server/src/instance.rs | 2 -- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/WORKLOG.md b/WORKLOG.md index 6c6bf1cc..85c3a5bd 100644 --- a/WORKLOG.md +++ b/WORKLOG.md @@ -34,7 +34,6 @@ *CLIENT* -arrows alignment purge green disable rework scatter hatred maybe diff --git a/client/src/components/targeting.arrows.jsx b/client/src/components/targeting.arrows.jsx index 1adeee0b..63b7a2da 100644 --- a/client/src/components/targeting.arrows.jsx +++ b/client/src/components/targeting.arrows.jsx @@ -46,6 +46,7 @@ class TargetSvg extends Component { const sourceY = height; const sourceX = (source * width / 3) + width / 6; const targetX = (target * width / 3) + width / 6 + + (defensive ? width / 64 : 0) + (pathOffset * width / 32); const targetY = defensive ? height : 0; const bendStart = height * (0.7 - 0.1 * source); diff --git a/server/src/instance.rs b/server/src/instance.rs index b6a0bdb9..4e5865a5 100644 --- a/server/src/instance.rs +++ b/server/src/instance.rs @@ -671,8 +671,6 @@ pub fn instance_ready(params: InstanceReadyParams, tx: &mut Transaction, account pub fn instance_state(params: InstanceStateParams, tx: &mut Transaction, _account: &Account) -> Result { let instance = instance_get(tx, params.instance_id)?; - println!("{:#?}", instance); - if let Some(game_id) = instance.current_game_id() { let game = game_get(tx, game_id)?;