aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 6a1650b..a7a8991 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -106,7 +106,7 @@ int main(int argc, char *argv[]){
entity[0]=&build[0];
static unsigned int i;
- build[0].spawn(-1,0,10);
+ build[0].spawn(STRUCTURET,0,10);
build[0].inside=iw;
for(i=0;i<entity.size()+1;i++){
entity[i]->inWorld=test;
@@ -194,7 +194,7 @@ 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;
}