From fa3b43c4b7a23503bbcf689e374e4eb7be108208 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 29 May 2013 04:30:11 +0200 Subject: [PATCH] As init_map() doesn't need the seed anymore, it's no longer a parameter. --- roguelike.c | 4 ++-- roguelike.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roguelike.c b/roguelike.c index cba46ad..ebf440d 100644 --- a/roguelike.c +++ b/roguelike.c @@ -67,7 +67,7 @@ void growshrink_active_window (struct WinMeta * win_meta, char change) { width++; resize_active_window (win_meta, height, width); } } -struct Map init_map (uint32_t seed) { +struct Map init_map () { // Initialize map with some experimental start values. struct Map map; map.width = 64; @@ -199,7 +199,7 @@ int main (int argc, char *argv[]) { world.turn = 0; world.log = calloc(1, sizeof(char)); update_log (&world, "Start!"); - struct Map map = init_map(seed); + struct Map map = init_map(); world.map = ↦ struct Player player; player.y = 8; diff --git a/roguelike.h b/roguelike.h index 7bbe5c3..45abf77 100644 --- a/roguelike.h +++ b/roguelike.h @@ -27,7 +27,7 @@ uint32_t load_seed(); void save_seed(uint32_t); void toggle_window (struct WinMeta *, struct Win *); void growshrink_active_window (struct WinMeta *, char); -struct Map init_map (uint32_t); +struct Map init_map (); void map_scroll (struct Map *, char); void next_turn (struct World *); void update_log (struct World *, char *); -- 2.30.2