Quiet down database compilation. Observe RNG stability.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 14 Mar 2023 14:48:53 +0000 (10:48 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 23 Mar 2023 15:28:53 +0000 (11:28 -0400)
At this commit, we can tell that the seeded-RNG nehavopr of this 430
branch is identical to that of master because the axebear log - which
includes randomization of dwarf spawning and the reservoir word -
yields the same results in both versions.

init.c

diff --git a/init.c b/init.c
index a74dd86b67acae6c208c78fa77942ec745e6028c..9cdbeefce2fc4c2fdf422671c2d043c74da686e5 100644 (file)
--- a/init.c
+++ b/init.c
@@ -180,7 +180,7 @@ void initialise(void) {
 }
 
 static int raw_init(void) {
-       printf("Couldn't find adventure.data, using adventure.text...\n");
+    //printf("Couldn't find adventure.data, using adventure.text...\n");
 
        FILE *OPENED=fopen("adventure.text","r" /* NOT binary */);
        if(!OPENED){printf("Can't read adventure.text!\n"); exit(0);}
@@ -634,7 +634,7 @@ L1993:      SETPRM(1,LINUSE,LINSIZ);
        SETPRM(15,CLSSES,CLSMAX);
        SETPRM(17,HNTMAX,HNTSIZ);
        SETPRM(19,TRNVLS,TRNSIZ);
-       RSPEAK(267);
+       //RSPEAK(267);
        TYPE0();
 }
 
@@ -661,7 +661,7 @@ static bool quick_init(void) {
 }
 
 static void quick_save(void) {
-       printf("Writing adventure.data...\n");
+       //printf("Writing adventure.data...\n");
        f = fopen("adventure.data",WRITE_MODE);
        if(f == NULL){printf("Can't open file!\n"); return;}
        init_reading = false;