summaryrefslogtreecommitdiff
path: root/webhogg/game_server/src/collide.rs
diff options
context:
space:
mode:
Diffstat (limited to 'webhogg/game_server/src/collide.rs')
-rw-r--r--webhogg/game_server/src/collide.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/webhogg/game_server/src/collide.rs b/webhogg/game_server/src/collide.rs
index 16b5357..44ab311 100644
--- a/webhogg/game_server/src/collide.rs
+++ b/webhogg/game_server/src/collide.rs
@@ -1,4 +1,4 @@
-use crate::maths::{Vec2, AABox, RBox};
+use crate::math::{Vec2, AABox, RBox};
pub trait Collide<Rhs> {
fn collides(&self, other: &Rhs) -> bool;
@@ -12,7 +12,7 @@ impl Collide<Vec2> for Vec2 {
impl Collide<Vec2> for AABox {
fn collides(&self, other: &Vec2) -> bool {
- self.pos < *other && other < &(self.pos + self.size)
+ self.pos < *other && other < &(self.pos + self.size)
}
}