From bcc3d39d6871e1ef97c2f439d941ae2b9009ff98 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 2 Jul 2013 03:42:42 +0200 Subject: [PATCH] Grew number of monsters / items. --- src/roguelike.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/roguelike.c b/src/roguelike.c index 04da8a6..0a5702f 100644 --- a/src/roguelike.c +++ b/src/roguelike.c @@ -207,7 +207,7 @@ int main (int argc, char *argv[]) { char i; struct Monster * monster = malloc(sizeof(struct Monster)); world.monster = monster; - for (i = 0; i < 2; i++) { + for (i = 0; i < 8; i++) { monster->name = 'M'; monster->next = malloc(sizeof(struct Monster)); monster = monster->next; } @@ -215,7 +215,7 @@ int main (int argc, char *argv[]) { monster->next = 0; struct Item * item = malloc(sizeof(struct Item)); world.item = item; - for (i = 0; i < 2; i++) { + for (i = 0; i < 8; i++) { item->name = '#'; item->next = malloc(sizeof(struct Item)); item = item->next; } -- 2.30.2