summaryrefslogtreecommitdiff
path: root/src/map/elemental.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/elemental.h')
-rw-r--r--src/map/elemental.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/map/elemental.h b/src/map/elemental.h
index 250cd3b72..ccc3bcb5f 100644
--- a/src/map/elemental.h
+++ b/src/map/elemental.h
@@ -46,16 +46,8 @@ struct elemental_data {
int target_id, attacked_id;
};
-
-
-
-
-
-
-
-#define elemental_stop_walking(ed, type) unit_stop_walking(&(ed)->bl, type)
-#define elemental_stop_attack(ed) unit_stop_attack(&(ed)->bl)
-
+#define elemental_stop_walking(ed, type) unit->stop_walking(&(ed)->bl, type)
+#define elemental_stop_attack(ed) unit->stop_attack(&(ed)->bl)
/*=====================================
* Interface : elemental.h
@@ -63,8 +55,10 @@ struct elemental_data {
* created by Susu
*-------------------------------------*/
struct elemental_interface {
+
/* vars */
struct s_elemental_db elemental_db[MAX_ELEMENTAL_CLASS]; // Elemental Database
+
/* funcs */
bool (*class) (int class_);
struct view_data * (*get_viewdata) (int class_);