diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-05-20 07:44:49 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-05-20 07:44:49 -0400 |
commit | 3d5820da8b91f676a6b5663ff19ccc68c30905ff (patch) | |
tree | 26b3a25290c80aab707c5b0b07382f27f0668488 /main.cpp | |
parent | 72941038ae15ed524e2a878d087d98bc97e946b4 (diff) |
bug fixessss
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -551,7 +551,7 @@ void logic(){ } } - if(e->isInside(ui::mouse) && player->isNear(*e)) { + if(e->isInside(ui::mouse) && player->isNear(e)) { e->near = true; if (e->type == OBJECTT) ObjectSelected = true; @@ -569,7 +569,7 @@ void logic(){ e->near = false; } } else if (e->type == MOBT) { - e->near = player->isNear(*e); + e->near = player->isNear(e); e->wander(); } } |