summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-09 20:19:32 -0300
committershennetsind <ind@henn.et>2013-07-09 20:19:32 -0300
commitb08910e828bd6f2029f2434572d8f84b30eb7d9c (patch)
tree28932ba60514fd0483aa5d88e0fa8a43200cac3c /src/map/script.c
parent55d42874dcf24c466f0104123d9efe280c0fd03c (diff)
downloadhercules-b08910e828bd6f2029f2434572d8f84b30eb7d9c.tar.gz
hercules-b08910e828bd6f2029f2434572d8f84b30eb7d9c.tar.bz2
hercules-b08910e828bd6f2029f2434572d8f84b30eb7d9c.tar.xz
hercules-b08910e828bd6f2029f2434572d8f84b30eb7d9c.zip
Travis Report Fixes
warn_unused_result shielding, dropped unused variables and fixed battle_calc_return_damage delay behavior (pointer was unchaged; resulting in the var afterwards always as 0) Special Thanks to Xgear. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/script.c b/src/map/script.c
index b5edec220..3cb31b726 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -10486,13 +10486,13 @@ BUILDIN(removemapflag)
{
int16 m,i;
const char *str;
- int val=0;
+ //int val=0;//warning: variable ‘val’ set but not used" - deprecated?
str=script_getstr(st,2);
i=script_getnum(st,3);
- if(script_hasdata(st,4)){
- val=script_getnum(st,4);
- }
+ //if(script_hasdata(st,4)){
+ // val=script_getnum(st,4);
+ //}
m = iMap->mapname2mapid(str);
if(m >= 0) {
switch(i) {