diff options
Diffstat (limited to 'src/map/map.h')
-rw-r--r-- | src/map/map.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/map.h b/src/map/map.h index 23d920011..2043f65b6 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -53,6 +53,8 @@ #define MAX_SEARCH 5
#define MAX_DUEL 1024
+#define map_id2index(id) map[(id)].index
+
//These mark the ID of the jobs, as expected by the client. [Skotlex]
enum {
JOB_NOVICE,
@@ -1278,7 +1280,7 @@ extern char db_path[256]; // gat?֧
int map_getcell(int,int,int,cell_t);
-int map_getcellp(struct map_data*,int,int,cell_t);
+int map_getcellp(struct map_data*,int,int,int);
void map_setcell(int,int,int,int);
extern int map_read_flag; // 0: grfիE1: ëE2: ëE?)
enum {
|