Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/intro/intro.cc')
-rw-r--r--src/game/intro/intro.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/game/intro/intro.cc b/src/game/intro/intro.cc
index efb3b40..ed512ca 100644
--- a/src/game/intro/intro.cc
+++ b/src/game/intro/intro.cc
@@ -14,18 +14,16 @@
namespace intro {
-Intro::Intro() : core::Module("intro", "Introduction", false)
+core::Module *factory()
{
- intro_zone = 0;
- intro_convoy = 0;
+ return new Intro();
}
-Intro::~Intro()
+Intro::Intro() : core::Module("Introduction", false)
{
-}
+ intro_zone = 0;
+ intro_convoy = 0;
-void Intro::init()
-{
/// intialize a single zone for the introduction
intro_zone = new core::Zone("intro");
intro_zone->set_name("Introduction");
@@ -144,7 +142,7 @@ void Intro::frame(float seconds)
}
}
-void Intro::shutdown()
+Intro::~Intro()
{
intro_zone = 0;