This commit is contained in:
jl777
2019-03-13 05:45:09 -11:00
parent 31ecac1e22
commit 94eaa600de

View File

@@ -84,7 +84,7 @@ quaff(struct rogue_state *rs)
fp = fopen("potions","wb"); fp = fopen("potions","wb");
if ( fp != 0 ) if ( fp != 0 )
{ {
fprintf(fp,"potion.%d\n",obj->o_which) fprintf(fp,"potion.%d\n",obj->o_which);
fflush(fp); fflush(fp);
} }
} }
@@ -102,7 +102,7 @@ quaff(struct rogue_state *rs)
pot_info[P_POISON].oi_know = TRUE; pot_info[P_POISON].oi_know = TRUE;
if ( fp != 0 ) if ( fp != 0 )
{ {
fprintf(fp,"poison iswearing.%d left.%d right.%d\n",ISWEARING(R_SUSTSTR),ISRING(LEFT, R_SUSTSTR),ISRING(RIGHT, R_SUSTSTR)) fprintf(fp,"poison iswearing.%d left.%d right.%d\n",ISWEARING(R_SUSTSTR),ISRING(LEFT, R_SUSTSTR),ISRING(RIGHT, R_SUSTSTR));
fflush(fp); fflush(fp);
} }
if (ISWEARING(R_SUSTSTR)) if (ISWEARING(R_SUSTSTR))