summaryrefslogtreecommitdiff
path: root/src/map/map.h
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-29 16:15:48 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-29 16:15:48 +0000
commitca1b74a373e9487e7eefe6f58af0c2453d038baa (patch)
tree62b85247a427176d8c44ff1e5f6769f7a1787f9b /src/map/map.h
parent6277250d56cf88f1ec22ac20816d887089ebda45 (diff)
downloadhercules-ca1b74a373e9487e7eefe6f58af0c2453d038baa.tar.gz
hercules-ca1b74a373e9487e7eefe6f58af0c2453d038baa.tar.bz2
hercules-ca1b74a373e9487e7eefe6f58af0c2453d038baa.tar.xz
hercules-ca1b74a373e9487e7eefe6f58af0c2453d038baa.zip
[Fixed]:
- pc_follow_timer possible triggering crash. - pc_reg_received to use battle_status.hp instead of status.hp [Added]: - macro map_id2index for non-cyptic mapid to mapindex conversion. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6822 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.h')
-rw-r--r--src/map/map.h4
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 {