diff options
author | tom <tom@ground-control> | 2015-11-23 14:09:41 -0600 |
---|---|---|
committer | tom <tom@ground-control> | 2015-11-23 14:09:41 -0600 |
commit | 8228cd7ef6156d87ccf33335466c86fa30dadd8b (patch) | |
tree | d3f4beb89343bae9fc9cdf5504c77c6d5acadaad /src/Character.cpp | |
parent | 4c50cb6b322368a89feef13efa091c765c966e5b (diff) |
removed unessasary pause code and improved list iteration
Diffstat (limited to 'src/Character.cpp')
-rw-r--r-- | src/Character.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Character.cpp b/src/Character.cpp index 5ebc39e..d5f8bc0 100644 --- a/src/Character.cpp +++ b/src/Character.cpp @@ -69,7 +69,7 @@ void Character::action(vector <Character> men) bool Character::check(Location L, vector <Character> men) { - for(int i = 0; i < 10; i++) + for(int i = 0; i < men.size(); i++) if(L.x == men[i].getLocation().x && L.y == men[i].getLocation().y) return false; |