Record experience level in the logfile too

This commit is contained in:
John "Elwin" Edwards 2009-11-16 23:54:24 +00:00
parent 777682dba6
commit ab5d57406c

View file

@ -314,7 +314,8 @@ void writelog(int amount, int flags, int monst)
if (waswizard) if (waswizard)
return; return;
#ifdef LOGFILE #ifdef LOGFILE
sprintf(logmessage, "%d %d %.20s ", time(NULL), amount, whoami); sprintf(logmessage, "%d %d %.20s %d ", time(NULL), amount, whoami,
pstats.s_lvl);
if (flags == 0) /* died */ if (flags == 0) /* died */
{ {
strcat(logmessage, "killed by a"); strcat(logmessage, "killed by a");