From: Christian Heller Date: Wed, 29 May 2013 02:30:11 +0000 (+0200) Subject: As init_map() doesn't need the seed anymore, it's no longer a parameter. X-Git-Tag: tce~1266 X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/processes?a=commitdiff_plain;h=fa3b43c4b7a23503bbcf689e374e4eb7be108208;p=plomrogue As init_map() doesn't need the seed anymore, it's no longer a parameter. --- 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 *);