aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2015-12-16 07:32:28 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2015-12-16 07:32:28 -0500
commitbf82dd59140d32f4eb265ae69a44784b5fda116a (patch)
tree4c5d628fcdb800781daa69ede30ee916816297c1 /src
parente67bfdde0b7e15ac6bc29993a92a89a844474554 (diff)
Stuff
Diffstat (limited to 'src')
-rw-r--r--src/entities.cpp7
-rw-r--r--src/gameplay.cpp2
-rw-r--r--src/world.cpp2
3 files changed, 7 insertions, 4 deletions
diff --git a/src/entities.cpp b/src/entities.cpp
index 24c0d01..3b8b52b 100644
--- a/src/entities.cpp
+++ b/src/entities.cpp
@@ -155,8 +155,8 @@ Mob::Mob(int sub){
height = 2000;
tex = new Texturec(0);
case MS_DOOR:
- width = HLINE * 10;
- height = HLINE * 16;
+ width = HLINE * 12;
+ height = HLINE * 20;
tex = new Texturec(1,"assets/door.png");
break;
}
@@ -416,7 +416,10 @@ unsigned int Structures::spawn(_TYPE t, BUILD_SUB sub, float x, float y){
* with type NPC.
*/
+ //((World*)(inWorld))->addNPC(loc.x + i * HLINE ,100);
+ //inWorld->addNPC(loc.x + i * HLINE, 100);
currentWorld->addNPC(loc.x + i * HLINE ,100);
+
}
diff --git a/src/gameplay.cpp b/src/gameplay.cpp
index 69ae2cc..6b62465 100644
--- a/src/gameplay.cpp
+++ b/src/gameplay.cpp
@@ -133,7 +133,6 @@ void initEverything(void){
//playerSpawnHill->addMob(MS_TRIGGER,player->loc.x,0,story);
- //worldSpawnHill2->addStructure(STRUCTURET,HOUSE,(rand()%120*HLINE),100,worldSpawnHill1,worldSpawnHill2);
//playerSpawnHill->addStructure(STRUCTURET,FOUNTAIN,(rand()%120*HLINE)+100*HLINE,100,test,iw);
//playerSpawnHill->addStructure(STRUCTURET,HOUSE2,(rand()%120*HLINE)+300*HLINE,100,test,iw);
@@ -143,6 +142,7 @@ void initEverything(void){
currentWorld = worldSpawnHill1;
+ worldSpawnHill2->addStructure(STRUCTURET,HOUSE,(rand()%120*HLINE),100,worldSpawnHill1,worldSpawnHill2);
player = new Player();
player->spawn(200,100);
diff --git a/src/world.cpp b/src/world.cpp
index 1b460a2..d26b0fb 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -903,7 +903,7 @@ void World::addStructure(_TYPE t,BUILD_SUB sub, float x,float y,World *outside,W
build.push_back(new Structures());
build.back()->spawn(t,sub,x,y);
build.back()->inWorld=outside;
- build.back()->inside=(void *)inside;
+ build.back()->inside=inside;
entity.push_back(build.back());
}