projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-19990317-1-src
[rocksndiamonds.git]
/
src
/
main.h
diff --git
a/src/main.h
b/src/main.h
index 726e58ac7444fc30e49ccffb2b94baccb22806dc..fad880a44de800221ef9bad3ca01a5ac155dd551 100644
(file)
--- a/
src/main.h
+++ b/
src/main.h
@@
-201,7
+201,7
@@
typedef unsigned char byte;
#define NUM_PIXMAPS 10
/* boundaries of arrays etc. */
#define NUM_PIXMAPS 10
/* boundaries of arrays etc. */
-#define MAX_
NAMELEN (10+1)
+#define MAX_
PLAYER_NAME_LEN 10
#define MAX_LEVEL_NAME_LEN 32
#define MAX_LEVEL_AUTHOR_LEN 32
#define MAX_TAPELEN (1000 * 50) /* max. time * framerate */
#define MAX_LEVEL_NAME_LEN 32
#define MAX_LEVEL_AUTHOR_LEN 32
#define MAX_TAPELEN (1000 * 50) /* max. time * framerate */
@@
-227,7
+227,7
@@
typedef unsigned char byte;
struct HiScore
{
struct HiScore
{
- char Name[MAX_
NAMELEN
];
+ char Name[MAX_
PLAYER_NAME_LEN + 1
];
int Score;
};
int Score;
};
@@
-236,7
+236,8
@@
struct OptionInfo
char *display_name;
char *server_host;
int server_port;
char *display_name;
char *server_host;
int server_port;
- char *base_directory;
+ char *ro_base_directory;
+ char *rw_base_directory;
char *level_directory;
boolean serveronly;
boolean network;
char *level_directory;
boolean serveronly;
boolean network;
@@
-1273,8
+1274,9
@@
extern char *element_info[];
#define SND_SP_BOOOM 58
#define SND_SP_EXIT 59
#define SND_EMPTY 60
#define SND_SP_BOOOM 58
#define SND_SP_EXIT 59
#define SND_EMPTY 60
+#define SND_GATE 61
-#define NUM_SOUNDS 6
1
+#define NUM_SOUNDS 6
2
/* default input keys */
#define KEY_UNDEFINDED XK_VoidSymbol
/* default input keys */
#define KEY_UNDEFINDED XK_VoidSymbol
@@
-1319,11
+1321,16
@@
extern char *element_info[];
#define SETUPINPUT 9
#define CALIBRATION 10
#define SETUPINPUT 9
#define CALIBRATION 10
-#ifndef GAME_DIR
-#define
GAME_DIR
"."
+#ifndef
RO_
GAME_DIR
+#define
RO_GAME_DIR
"."
#endif
#endif
-#define BASE_PATH GAME_DIR
+#ifndef RW_GAME_DIR
+#define RW_GAME_DIR "."
+#endif
+
+#define RO_BASE_PATH RO_GAME_DIR
+#define RW_BASE_PATH RW_GAME_DIR
#define GRAPHICS_DIRECTORY "graphics"
#define SOUNDS_DIRECTORY "sounds"
#define GRAPHICS_DIRECTORY "graphics"
#define SOUNDS_DIRECTORY "sounds"