Skip to content

Commit

Permalink
increase connection hitbox size
Browse files Browse the repository at this point in the history
  • Loading branch information
Spydr06 committed Oct 4, 2023
1 parent 1557c63 commit 16642df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simulator/connection.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::*;
use crate::{
application::editor::EditorMode,
application::editor::{EditorMode, self},
id::Id,
renderer::{vector::*, *},
};
Expand Down Expand Up @@ -76,7 +76,7 @@ pub enum Segment {
}

impl Segment {
pub const HITBOX_SIZE: i32 = 6;
pub const HITBOX_SIZE: i32 = editor::GRID_SIZE / 2;

pub fn position(&self) -> Option<&Vector2<i32>> {
match self {
Expand Down

0 comments on commit 16642df

Please sign in to comment.