diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2015-12-01 07:29:47 -0500 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2015-12-01 07:29:47 -0500 |
commit | 813f30f8d7e4db971fbb9aab429b489e884ad2e9 (patch) | |
tree | 706a0dc14485acfb7cb711f20c98f821465f8fe3 /src/gameplay.cpp | |
parent | af22d85f9a417a94ea75db1878219f8baeba8b73 (diff) | |
parent | 80bc1b24bcf6862a7fbd3223a3d6988ce4e389e0 (diff) |
Merge branch 'master' of http://github.com/tcsullivan/gamedev
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r-- | src/gameplay.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp index 2fd7424..eadd668 100644 --- a/src/gameplay.cpp +++ b/src/gameplay.cpp @@ -91,6 +91,9 @@ void CUTSCENEEE(void){ float playerSpawnHillFunc(float x){ return (float)(pow(2,(-x+200)/5) + 80); } + +void destroyEverything(void); + void initEverything(void){ unsigned int i; @@ -153,9 +156,11 @@ void initEverything(void){ currentWorld->addObject(SWORD_WOOD, 650,200); currentWorld->addObject(FLASHLIGHT, true, "This looks important, do you want to pick it up?",700,200); */ - /* - * Link all the entities that were just created to the initial world, and setup a test AI function. - */ currentWorld->npc[0]->addAIFunc(giveTestQuest,false); + atexit(destroyEverything); +} + +void destroyEverything(void){ + //delete currentWorld; } |