diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Character.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/Character.cpp b/src/Character.cpp index 0ab594b..5ebc39e 100644 --- a/src/Character.cpp +++ b/src/Character.cpp @@ -13,7 +13,7 @@ void Character::draw(WINDOW * w) mvwaddch(w,l.x,l.y,symbol); } -Location Character::action(vector <Character> men) +void Character::action(vector <Character> men) { if(order == "wander") { @@ -60,17 +60,10 @@ Location Character::action(vector <Character> men) Lo.y = l.y+1; } else - { Lo = l; - } if(check(Lo,men)) - { move(Lo); - return Lo; - } - else - return l; } } |