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/List.cpp | |
parent | 4c50cb6b322368a89feef13efa091c765c966e5b (diff) |
removed unessasary pause code and improved list iteration
Diffstat (limited to 'src/List.cpp')
-rw-r--r-- | src/List.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/List.cpp b/src/List.cpp index 05a6f66..d4bc796 100644 --- a/src/List.cpp +++ b/src/List.cpp @@ -2,7 +2,7 @@ List::List() { - for(int i = 0; i < 10; i++) + for(int i = 0; i < 50; i++) { Location L; L.x = 150; @@ -14,12 +14,12 @@ List::List() void List::draw(WINDOW * w) { - for(int i = 0; i < 10; i++) + for(int i = 0; i < men.size(); i++) men[i].draw(w); } void List::action() { - for(int i = 0; i < 10; i++) + for(int i = 0; i < men.size(); i++) men[i].action(men); } |