X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=6e970c2f217963eb67cb7319c7e1feeea3cbd785;hb=6890bb7cb72e140f4b82f35217655ae6c5213fec;hp=bce313726214736f80f76eca3b800d19ce164e75;hpb=4b1b5a2a67227d3023ff6da4596be31eae8eaefc;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index bce31372..6e970c2f 100644 --- a/src/init.c +++ b/src/init.c @@ -2529,7 +2529,9 @@ void InitElementPropertiesStatic() EL_PENGUIN, EL_PIG, EL_DRAGON, +#if 0 /* USE_GRAVITY_BUGFIX */ EL_PLAYER_IS_LEAVING, /* needed for gravity + "block last field" */ +#endif -1 }; @@ -4172,7 +4174,7 @@ void Execute_Command(char *command) { char *filename = &command[11]; - if (access(filename, F_OK) != 0) + if (!fileExists(filename)) Error(ERR_EXIT, "cannot open file '%s'", filename); LoadLevelFromFilename(&level, filename); @@ -4184,7 +4186,7 @@ void Execute_Command(char *command) { char *filename = &command[10]; - if (access(filename, F_OK) != 0) + if (!fileExists(filename)) Error(ERR_EXIT, "cannot open file '%s'", filename); LoadTapeFromFilename(filename);