projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-19981108-1
[rocksndiamonds.git]
/
src
/
init.c
diff --git
a/src/init.c
b/src/init.c
index 7a5f5eeb521a651bff36cf587fed803df82831df..52facada8273910720c004a61d9f963cebabcf52 100644
(file)
--- a/
src/init.c
+++ b/
src/init.c
@@
-65,6
+65,7
@@
void OpenAll(int argc, char *argv[])
exit(0);
}
exit(0);
}
+ InitUserdataDirectory();
InitLevelAndPlayerInfo();
InitCounter();
InitLevelAndPlayerInfo();
InitCounter();
@@
-139,7
+140,7
@@
void InitSound()
return;
#ifndef MSDOS
return;
#ifndef MSDOS
- if (access(sound_device_name,
W_OK)<
0)
+ if (access(sound_device_name,
W_OK) !=
0)
{
Error(ERR_WARN, "cannot access sound device - no sounds");
sound_status = SOUND_OFF;
{
Error(ERR_WARN, "cannot access sound device - no sounds");
sound_status = SOUND_OFF;
@@
-245,7
+246,7
@@
void InitJoysticks()
if (!setup.input[i].use_joystick)
continue;
if (!setup.input[i].use_joystick)
continue;
- if (access(device_name, R_OK)
<
0)
+ if (access(device_name, R_OK)
!=
0)
{
Error(ERR_WARN, "cannot access joystick device '%s'", device_name);
continue;
{
Error(ERR_WARN, "cannot access joystick device '%s'", device_name);
continue;