Fix: SE046 Problem: eraseoldlocks() does not support file areas. Reported by: Peter Makholm, peter@makholm.net Compatible with: Slash'EM 0.0.5E7F1 Slash'EM 0.0.6E0F1 Author: J. Ali Harlow, ali@avrc.city.ac.uk Date: 26 Jan 2000 *** sys/unix/unixunix.c.orig Mon Jan 17 13:29:59 2000 --- sys/unix/unixunix.c Wed Jan 26 13:55:52 2000 *************** *** 157,166 **** for(i = 1; i <= MAXDUNGEON*MAXLEVEL + 1; i++) { /* try to remove all */ set_levelfile_name(lock, i); (void) unlink(lock); } set_levelfile_name(lock, 0); ! if(unlink(lock)) return(0); /* cannot remove it */ return(1); /* success! */ } --- 157,175 ---- for(i = 1; i <= MAXDUNGEON*MAXLEVEL + 1; i++) { /* try to remove all */ set_levelfile_name(lock, i); + #ifdef FILE_AREAS + (void) remove_area(FILE_AREA_LEVL, lock); + #else (void) unlink(lock); + #endif } set_levelfile_name(lock, 0); ! #ifdef FILE_AREAS ! if(remove_area(FILE_AREA_LEVL, lock)) ! #else ! if(unlink(lock)) ! #endif ! return(0); /* cannot remove it */ return(1); /* success! */ }