From 7394b069537ed7a490a343381d62862eb22abdcf Mon Sep 17 00:00:00 2001 From: majortom6 Date: Sun, 26 Feb 2017 11:14:31 -0600 Subject: -REMOVED ENTITY, RESOURCE, AND CREATURE ! -replaced them all with one class, organism (always subject to change) -the dna type now is what differs creatures and resources -removed dead constants -may be a rogue segfault -also weird artifacts start showing if running long --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index d5a192d..43ec1e4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -47,10 +47,10 @@ int main() shader.Bind(); _spriteBatch.begin(); - for(std::list::iterator it = L.creatures.begin(); it != L.creatures.end(); it++) + for(std::list::iterator it = L.creatures.begin(); it != L.creatures.end(); it++) _spriteBatch.draw(it->getGFXD()); - for(std::list::iterator it = L.resources.begin(); it != L.resources.end(); it++) + for(std::list::iterator it = L.resources.begin(); it != L.resources.end(); it++) _spriteBatch.draw(it->getGFXD()); _spriteBatch.end(); -- cgit v1.2.3