home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67edb84
)
Seed rrand() at start of main() instead of inside init_map().
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 29 May 2013 01:56:41 +0000
(
03:56
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 29 May 2013 01:56:41 +0000
(
03:56
+0200)
roguelike.c
patch
|
blob
|
history
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.
- rrand(1, seed);
struct Map map;
map.width = 64;
map.height = 64;
@@
-197,6
+196,7
@@
int main (int argc, char *argv[]) {
break;
default:
exit(EXIT_FAILURE); } }
+ rrand(1, seed);
struct World world;
init_keybindings(&world);