summaryrefslogtreecommitdiff
path: root/src/map/status.h
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-10-16 06:46:57 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-10-16 06:46:57 +0000
commit6669de77431e0bb6548bdcbb13a6cf13f40b247f (patch)
tree5f374064a47b94ad9a7cbb8b3ce08305b7e58327 /src/map/status.h
parentf87f36b82dbf7f907555fed2fdd8efab8f869ea6 (diff)
downloadhercules-6669de77431e0bb6548bdcbb13a6cf13f40b247f.tar.gz
hercules-6669de77431e0bb6548bdcbb13a6cf13f40b247f.tar.bz2
hercules-6669de77431e0bb6548bdcbb13a6cf13f40b247f.tar.xz
hercules-6669de77431e0bb6548bdcbb13a6cf13f40b247f.zip
* Changed function-like macros into inline functions where it seemed appropriate (topic:264007).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14976 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.h')
-rw-r--r--src/map/status.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/map/status.h b/src/map/status.h
index d3f5a2f48..dcd532577 100644
--- a/src/map/status.h
+++ b/src/map/status.h
@@ -1108,7 +1108,7 @@ struct weapon_atk {
//For holding basic status (which can be modified by status changes)
struct status_data {
unsigned int
- hp, sp,
+ hp, sp, // see status_cpy before adding members before hp and sp
max_hp, max_sp;
unsigned short
str, agi, vit, int_, dex, luk,
@@ -1215,10 +1215,6 @@ int status_set_sp(struct block_list *bl, unsigned int sp, int flag);
int status_heal(struct block_list *bl,int hp,int sp, int flag);
int status_revive(struct block_list *bl, unsigned char per_hp, unsigned char per_sp);
-//Define for copying a status_data structure from b to a, without overwriting current Hp and Sp
-#define status_cpy(a, b) \
- memcpy(&((a)->max_hp), &((b)->max_hp), sizeof(struct status_data)-(sizeof((a)->hp)+sizeof((a)->sp)))
-
struct regen_data *status_get_regen_data(struct block_list *bl);
struct status_data *status_get_status_data(struct block_list *bl);
struct status_data *status_get_base_status(struct block_list *bl);