home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Seed rrand() at start of main() instead of inside init_map().
[plomrogue]
/
roguelike.c
diff --git
a/roguelike.c
b/roguelike.c
index e02884594073b80ff9f8746547bd5855f23912b0..7caaec9dd194a2d6219909a1856766e04c749950 100644
(file)
--- a/
roguelike.c
+++ b/
roguelike.c
@@
-69,7
+69,6
@@
void growshrink_active_window (struct WinMeta * win_meta, char change) {
struct Map init_map (uint32_t seed) {
// Initialize map with some experimental start values.
struct Map init_map (uint32_t seed) {
// Initialize map with some experimental start values.
- rrand(1, seed);
struct Map map;
map.width = 64;
map.height = 64;
struct Map map;
map.width = 64;
map.height = 64;
@@
-197,6
+196,7
@@
int main (int argc, char *argv[]) {
break;
default:
exit(EXIT_FAILURE); } }
break;
default:
exit(EXIT_FAILURE); } }
+ rrand(1, seed);
struct World world;
init_keybindings(&world);
struct World world;
init_keybindings(&world);