diff options
Diffstat (limited to 'src/game-server/spawnarea.cpp')
-rw-r--r-- | src/game-server/spawnarea.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game-server/spawnarea.cpp b/src/game-server/spawnarea.cpp index 951b2085..3a6e9a17 100644 --- a/src/game-server/spawnarea.cpp +++ b/src/game-server/spawnarea.cpp @@ -33,11 +33,11 @@ * TODO: Allow specifying being type and use it. */ -SpawnArea::SpawnArea(MapComposite *map, const Rectangle &zone): +SpawnArea::SpawnArea(MapComposite *map, MonsterClass *specy, const Rectangle &zone): Thing(OBJECT_OTHER, map), + mSpecy(specy), mZone(zone), mMaxBeings(10), - mBeingType(1), mSpawnRate(10), mNumBeings(0), mNextSpawn(0) @@ -67,7 +67,7 @@ SpawnArea::update() if (c) { - Being *being = new Monster(); + Being *being = new Monster(mSpecy); being->addDeathListener(this); // some bogus stats for testing |