]> code.bitgloo.com Git - clyne/gamedev.git/commitdiff
oh
authorClyne Sullivan <tullivan99@gmail.com>
Mon, 28 Sep 2015 12:15:39 +0000 (08:15 -0400)
committerClyne Sullivan <tullivan99@gmail.com>
Mon, 28 Sep 2015 12:15:39 +0000 (08:15 -0400)
src/entities.cpp

index ab19c6f028e510955caf73c2609f545ad6bca6e6..e93f23a7e1f344e30f10f7b21111ef1474a4f10e 100644 (file)
@@ -83,7 +83,6 @@ unsigned int Structures::spawn(int t, float x, float y){
                        std::cout<<"NPC:"<<npc.size()<<std::endl;
                        std::cout<<"Entity:"<<entity.size()<<std::endl;
                        entity[entity.size()] = &npc[npc.size()-1];
-                       entity[entity.size()]->spawn(loc.x + (float)(i - 5) / 8,100);
                        entity[entity.size()-1]->spawn(loc.x + (float)(i - 5) / 8,100);
                        std::cout<<"Entity Type["<<entity.size()<<"]: "<<entity[entity.size()]->type<<std::endl;
                        std::cout<<"Entity Life["<<entity.size()<<"]: "<<entity[entity.size()]->alive<<std::endl;