From 1423b37feb3a548ad917bf7667a2e1b5b85562de Mon Sep 17 00:00:00 2001 From: Lance Date: Sun, 27 Aug 2006 22:20:00 +0000 Subject: Tweaked MEMSET_TURBO abit, temperory disabled GCC version. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8505 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/map.h | 2 +- src/map/status.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map') diff --git a/src/map/map.h b/src/map/map.h index 9ca8af739..59c77594e 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -424,7 +424,7 @@ struct vending { struct weapon_data { int atkmods[3]; // all the variables except atkmods get zero'ed in each call of status_calc_pc - // NOTE: if you want to add a non-zeroed variable, you need to update the memset call + // NOTE: if you want to add a non-zeroed variable, you need to update the malloc_set call // in status_calc_pc as well! All the following are automatically zero'ed. [Skotlex] int overrefine; int star; diff --git a/src/map/status.c b/src/map/status.c index 12a20a335..ffa243604 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -1589,7 +1589,7 @@ int status_calc_pc(struct map_session_data* sd,int first) malloc_set(&status->max_hp, 0, sizeof(struct status_data)-(sizeof(status->hp)+sizeof(status->sp)+sizeof(status->lhw))); malloc_set(status->lhw, 0, sizeof(struct weapon_atk)); - //FIXME: Most of these stuff should be calculated once, but how do I fix the memset above to do that? [Skotlex] + //FIXME: Most of these stuff should be calculated once, but how do I fix the malloc_set above to do that? [Skotlex] status->speed = DEFAULT_WALK_SPEED; status->mode = MD_CANMOVE|MD_CANATTACK|MD_LOOTER|MD_ASSIST|MD_AGGRESSIVE|MD_CASTSENSOR; status->size = (sd->class_&JOBL_BABY)?0:1; -- cgit v1.2.3-70-g09d2