diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index 1e8b942..b24c747 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -109,8 +109,8 @@ int main(int argc, char *argv[]){ entity[0]=&build[0]; static unsigned int i; - build[0].spawn(-1,0,10); - for(i=0;i<entity.size()+1;i++){ + build[0].spawn(STRUCTURET,0,10); + for(i=0;i<=entity.size();i++){ entity[i]->inWorld=test; } @@ -196,9 +196,9 @@ void logic(){ ui::handleEvents(); currentWorld->detect(player); for(int i=0;i<=entity.size();i++){ - if(entity[i]->alive&&entity[i]->type == 1){ + if(entity[i]->alive&&entity[i]->type == NPCT){ entity[i]->wander(90, &entity[i]->vel); - std::cout<<"works"<<i<<std::endl; + //std::cout<<"works"<<i<<std::endl; } } } |