diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2015-10-23 08:44:55 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2015-10-23 08:44:55 -0400 |
commit | 0b5a24d5c3ea48c748cfa28ae258cd65187f9bf1 (patch) | |
tree | 5258af77ab83aac298229253fb011f1858962118 /src/gameplay.cpp | |
parent | 19ba40a368b06c38365fe861b6de9403044096a7 (diff) |
Worked on the new texture library
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r-- | src/gameplay.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp index 3b9b819..f9d2578 100644 --- a/src/gameplay.cpp +++ b/src/gameplay.cpp @@ -51,8 +51,8 @@ void initEverything(void){ iw->generate(200); build[0]->inside=iw; - entity.push_back(new Mob()); //create a new entity of NPC type - mob.push_back(Mob()); //create new NPC + entity.push_back(new Mob(1)); //create a new entity of NPC type + mob.push_back(Mob(1)); //create new NPC entity[entity.size()] = &mob[mob.size()-1]; //set the new entity to have the same traits as an NPC entity[entity.size()-1]->spawn(200,100); //sets the position of the villager around the village entity.pop_back(); |