X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=6e970c2f217963eb67cb7319c7e1feeea3cbd785;hb=6890bb7cb72e140f4b82f35217655ae6c5213fec;hp=dbecf851dd941b4d69dc4ed6b69375b5c9f944a9;hpb=51dcb2097c619c5f9ba924a7edb4a3bdd6a6986e;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index dbecf851..6e970c2f 100644 --- a/src/init.c +++ b/src/init.c @@ -2529,6 +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 }; @@ -4171,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); @@ -4183,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);