summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2013-06-26 22:15:22 -0700
committermalufett <malufett.eat.my.binaries@gmail.com>2013-06-26 22:15:22 -0700
commit8a248444bc140c9e3770105aae1f3cd6af569dbe (patch)
tree23ceb4f90ac4b2e68cd865efa60f1a418f09fe66 /src/map/status.c
parent074662a4b30e5d380fda32fd7df2d3ae2de759e0 (diff)
downloadhercules-8a248444bc140c9e3770105aae1f3cd6af569dbe.tar.gz
hercules-8a248444bc140c9e3770105aae1f3cd6af569dbe.tar.bz2
hercules-8a248444bc140c9e3770105aae1f3cd6af569dbe.tar.xz
hercules-8a248444bc140c9e3770105aae1f3cd6af569dbe.zip
Fixed bug#7438
-fixed some compilation warning in PRE mode.
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index f209ebea4..97fed4ceb 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -3318,6 +3318,8 @@ static unsigned char status_calc_element_lv(struct block_list *bl, struct status
static unsigned short status_calc_mode(struct block_list *bl, struct status_change *sc, int mode);
#ifdef RENEWAL
static unsigned short status_calc_ematk(struct block_list *,struct status_change *,int);
+#else
+static unsigned short status_calc_batk(struct block_list *,struct status_change *,int,bool);
#endif
//Calculates base regen values.
@@ -4399,8 +4401,11 @@ static unsigned short status_calc_luk(struct block_list *bl, struct status_chang
return (unsigned short)cap_value(luk,0,USHRT_MAX);
}
-
+#ifdef RENEWAL
unsigned short status_calc_batk(struct block_list *bl, struct status_change *sc, int batk, bool viewable)
+#else
+static unsigned short status_calc_batk(struct block_list *bl, struct status_change *sc, int batk, bool viewable)
+#endif
{
if(!sc || !sc->count)
return cap_value(batk,0,USHRT_MAX);