File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -3419,4 +3419,5 @@ The following changes to date are:
3419
3419
in pools/moats
3420
3420
- New spells - burning hands, shocking grasp
3421
3421
- Fix: repair armor spell will not randomly target the Hand of Vecna
3422
+ - Suppress livelogging whilst in explore mode
3422
3423
Original file line number Diff line number Diff line change @@ -4688,15 +4688,21 @@ const char *buffer;
4688
4688
#define LLOG_SEP '\t' /* livelog field separator */
4689
4689
FILE * livelogfile ;
4690
4690
4691
- if (!(ll_type & sysopt .livelog )) return ;
4692
- if ((ll_type == LL_CONDUCT ) && (moves < sysopt .ll_conduct_turns )) return ;
4693
- if (lock_file (LIVELOGFILE , SCOREPREFIX , 10 )) {
4694
- if (!(livelogfile = fopen_datafile (LIVELOGFILE , "a" , SCOREPREFIX ))) {
4691
+ if (!(ll_type & sysopt .livelog ))
4692
+ return ;
4693
+ if ((ll_type == LL_CONDUCT )
4694
+ && (moves < sysopt .ll_conduct_turns ))
4695
+ return ;
4696
+ if (discover ) /* don't livelog in explore mode */
4697
+ return ;
4698
+ if (lock_file (LIVELOGFILE , SCOREPREFIX , 10 )) {
4699
+ if (!(livelogfile = fopen_datafile (LIVELOGFILE , "a" , SCOREPREFIX ))) {
4695
4700
pline ("Cannot open live log file!" );
4696
4701
} else {
4697
4702
char tmpbuf [1024 + 1 ];
4698
4703
char msgbuf [512 + 1 ];
4699
4704
char * c1 = msgbuf ;
4705
+
4700
4706
strncpy (msgbuf , buffer , 512 );
4701
4707
msgbuf [512 ] = '\0' ;
4702
4708
while (* c1 != '\0' ) {
@@ -4719,9 +4725,9 @@ const char *buffer;
4719
4725
moves ,
4720
4726
LLOG_SEP ,
4721
4727
urealtime .realtime + (getnow () - urealtime .start_timing ), LLOG_SEP ,
4722
- (long )ubirthday ,
4728
+ (long ) ubirthday ,
4723
4729
LLOG_SEP ,
4724
- (long )time (NULL ),
4730
+ (long ) time (NULL ),
4725
4731
LLOG_SEP ,
4726
4732
msgbuf );
4727
4733
You can’t perform that action at this time.
0 commit comments