aboutsummaryrefslogtreecommitdiff
path: root/plugins/monster
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-06-14 20:58:57 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-06-14 20:58:57 +0200
commit0f4153099c2a0d8fa4480dcd690820976df4a939 (patch)
tree46db76492cc640af2c48be8fcfe3e5d2ec96e7d6 /plugins/monster
parent90114b876b9e023111dd17b455f82972fd6d5c1d (diff)
downloaddungeon_game-0f4153099c2a0d8fa4480dcd690820976df4a939.tar.xz
Add mapgen contexts
Diffstat (limited to 'plugins/monster')
-rw-r--r--plugins/monster/monster.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/monster/monster.c b/plugins/monster/monster.c
index 02957da..a9e725c 100644
--- a/plugins/monster/monster.c
+++ b/plugins/monster/monster.c
@@ -10,8 +10,6 @@ struct monster_data
static void monster_spawn(struct entity *self, void *data)
{
- (void) data;
-
self->meta = malloc(sizeof(struct monster_data));
((struct monster_data *) self->meta)->timer = 0.5;
}
@@ -62,7 +60,7 @@ static struct entity monster_entity = {
};
-static void spawn_monster(int x, int y)
+static void spawn_monster(int x, int y, enum mg_context ctx)
{
spawn(monster_entity, x, y, NULL);
}