X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ffiles.c;h=6e1c770f0fcfb4afd19666a82c8e6ea7ad2afda9;hp=473a73926cbcaa9f24502582db6844c9746b786a;hb=6890bb7cb72e140f4b82f35217655ae6c5213fec;hpb=d1cc94cad14b78a9722c1c021a619b6363ae97fe diff --git a/src/files.c b/src/files.c index 473a7392..6e1c770f 100644 --- a/src/files.c +++ b/src/files.c @@ -3959,7 +3959,7 @@ void SaveTape(int nr) InitTapeDirectory(leveldir_current->subdir); /* if a tape still exists, ask to overwrite it */ - if (access(filename, F_OK) == 0) + if (fileExists(filename)) { new_tape = FALSE; if (!Request("Replace old tape ?", REQ_ASK))