comparison rogue5/mach_dep.c @ 304:e52a8a7ad4c5

Fix many compiler warnings. There should only be two changes in behavior: arogue7/fight.c, arogue7/fight.c: a to-hit bonus is now correctly applied to characters who are not monks instead of monks who are not empty-handed. urogue/fight.c: fixed an interaction with the "debug" macro that could cause the wrong message to be displayed.
author John "Elwin" Edwards
date Wed, 14 Apr 2021 18:55:33 -0400
parents 2c62bd925c17
children
comparison
equal deleted inserted replaced
303:e06ebc407615 304:e52a8a7ad4c5
375 fclose(utmp); 375 fclose(utmp);
376 return count; 376 return count;
377 } 377 }
378 #endif 378 #endif
379 379
380 #if defined(SCOREFILE) && defined(LOCKFILE)
381 static FILE *lfd = NULL;
382 #endif
383
380 /* 384 /*
381 * lock_sc: 385 * lock_sc:
382 * lock the score file. If it takes too long, ask the user if 386 * lock the score file. If it takes too long, ask the user if
383 * they care to wait. Return TRUE if the lock is successful. 387 * they care to wait. Return TRUE if the lock is successful.
384 */ 388 */
385 static FILE *lfd = NULL;
386 int 389 int
387 lock_sc(void) 390 lock_sc(void)
388 { 391 {
389 #if defined(SCOREFILE) && defined(LOCKFILE) 392 #if defined(SCOREFILE) && defined(LOCKFILE)
390 int cnt; 393 int cnt;