projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20050603-1-src
[rocksndiamonds.git]
/
src
/
init.c
diff --git
a/src/init.c
b/src/init.c
index bce313726214736f80f76eca3b800d19ce164e75..6e970c2f217963eb67cb7319c7e1feeea3cbd785 100644
(file)
--- a/
src/init.c
+++ b/
src/init.c
@@
-2529,7
+2529,9
@@
void InitElementPropertiesStatic()
EL_PENGUIN,
EL_PIG,
EL_DRAGON,
EL_PENGUIN,
EL_PIG,
EL_DRAGON,
+#if 0 /* USE_GRAVITY_BUGFIX */
EL_PLAYER_IS_LEAVING, /* needed for gravity + "block last field" */
EL_PLAYER_IS_LEAVING, /* needed for gravity + "block last field" */
+#endif
-1
};
-1
};
@@
-4172,7
+4174,7
@@
void Execute_Command(char *command)
{
char *filename = &command[11];
{
char *filename = &command[11];
- if (
access(filename, F_OK) != 0
)
+ if (
!fileExists(filename)
)
Error(ERR_EXIT, "cannot open file '%s'", filename);
LoadLevelFromFilename(&level, 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];
{
char *filename = &command[10];
- if (
access(filename, F_OK) != 0
)
+ if (
!fileExists(filename)
)
Error(ERR_EXIT, "cannot open file '%s'", filename);
LoadTapeFromFilename(filename);
Error(ERR_EXIT, "cannot open file '%s'", filename);
LoadTapeFromFilename(filename);