From 14c36420a37678b75b30f3b4d1dec7eddb053eef Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Sun, 26 Mar 2017 06:46:12 -0500 Subject: -all organisms now in one list -plants do not reproduce yet, this is needed --- src/main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/main.cpp') 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::iterator it = L.creatures.begin(); it != L.creatures.end(); it++) - _spriteBatch.draw(it->getRectangle(),it->getVisuals()); - for(std::list::iterator it = L.resources.begin(); it != L.resources.end(); it++) + for(std::list::iterator it = L.organisms.begin(); it != L.organisms.end(); it++) _spriteBatch.draw(it->getRectangle(),it->getVisuals()); _spriteBatch.end(); -- cgit v1.2.3