summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorTom Barrett <tombarrett@siu.edu>2017-03-26 06:46:12 -0500
committerTom Barrett <tombarrett@siu.edu>2017-03-26 06:46:12 -0500
commit14c36420a37678b75b30f3b4d1dec7eddb053eef (patch)
treeece60c7fa781d9a5001454d30dec38772b2dc9bf /src/main.cpp
parent3b3df333974f337fcb506f37a06ea0e89c14b4b0 (diff)
-all organisms now in one listHEADmaster
-plants do not reproduce yet, this is needed
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index cacd612..d42ca9d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -46,11 +46,8 @@ int main()
shader.Bind();
_spriteBatch.begin();
-
- for(std::list<Organism>::iterator it = L.creatures.begin(); it != L.creatures.end(); it++)
- _spriteBatch.draw(it->getRectangle(),it->getVisuals());
- for(std::list<Organism>::iterator it = L.resources.begin(); it != L.resources.end(); it++)
+ for(std::list<Organism>::iterator it = L.organisms.begin(); it != L.organisms.end(); it++)
_spriteBatch.draw(it->getRectangle(),it->getVisuals());
_spriteBatch.end();