aboutsummaryrefslogtreecommitdiffstats
path: root/src/entities.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-09-30 08:51:10 -0400
committerClyne Sullivan <tullivan99@gmail.com>2015-09-30 08:51:10 -0400
commit8deee144293102d4498424c38161d13c877250b2 (patch)
treee55cd9352fdd8534425b469ff428b3ca23d2729d /src/entities.cpp
parentb3e21d31304efd793c58e904765bf298da6c5c20 (diff)
quest stuff
Diffstat (limited to 'src/entities.cpp')
-rw-r--r--src/entities.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/entities.cpp b/src/entities.cpp
index cff971f..8689b00 100644
--- a/src/entities.cpp
+++ b/src/entities.cpp
@@ -94,14 +94,13 @@ unsigned int Structures::spawn(_TYPE t, float x, float y){ //spawns a structure
width = 20 * HLINE;
height = 16 * HLINE;
- int tempN = (getRand() % 5 + 1); //amount of villagers that will spawn
+ int tempN = 2;//(getRand() % 5 + 1); //amount of villagers that will spawn
for(int i=0;i<tempN;i++){
entity.push_back(new NPC()); //create a new entity of NPC type
npc.push_back(NPC()); //create new NPC
entity[entity.size()] = &npc[npc.size()-1]; //set the new entity to have the same traits as an NPC
entity[entity.size()-1]->spawn(loc.x + (float)(i - 5),100); //sets the position of the villager around the village
}
- entity.pop_back();
return entity.size();
}
}