diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-02-15 12:22:03 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-02-15 12:22:03 +0000 |
commit | 76de90694832a3e45dbfc806664b2105dd8e61e5 (patch) | |
tree | 534755364f8bc77b95f4463626792a58a7223c28 /src/map/script.c | |
parent | 64ae7b6bc0cd76457aad32f327b816ee6d4bf7a4 (diff) | |
download | hercules-76de90694832a3e45dbfc806664b2105dd8e61e5.tar.gz hercules-76de90694832a3e45dbfc806664b2105dd8e61e5.tar.bz2 hercules-76de90694832a3e45dbfc806664b2105dd8e61e5.tar.xz hercules-76de90694832a3e45dbfc806664b2105dd8e61e5.zip |
some compilation warning fixes
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12206 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/map/script.c b/src/map/script.c index 3294455a1..46fecb806 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -4450,20 +4450,16 @@ BUILDIN_FUNC(warpparty) *------------------------------------------*/ BUILDIN_FUNC(warpguild) { - int x,y; - unsigned short mapindex; - const char *str; - int gid; TBL_PC *sd; TBL_PC *pl_sd; struct guild* g; struct s_mapiterator* iter; int type; - str=script_getstr(st,2); - x=script_getnum(st,3); - y=script_getnum(st,4); - gid=script_getnum(st,5); + const char* str = script_getstr(st,2); + int x = script_getnum(st,3); + int y = script_getnum(st,4); + int gid = script_getnum(st,5); sd=script_rid2sd(st); if( sd == NULL ) @@ -4479,8 +4475,6 @@ BUILDIN_FUNC(warpguild) : ( strcmp(str,"SavePointAll")==0 ) ? 1 : ( strcmp(str,"SavePoint")==0 ) ? 2 : 3; - if( type == 3 ) - mapindex = mapindex_name2id(str); iter = mapit_getallusers(); for( pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter) ) @@ -4504,7 +4498,7 @@ BUILDIN_FUNC(warpguild) break; case 3: // m,x,y if(!map[pl_sd->bl.m].flag.noreturn && !map[pl_sd->bl.m].flag.nowarp) - pc_setpos(pl_sd,mapindex,x,y,3); + pc_setpos(pl_sd,mapindex_name2id(str),x,y,3); break; } } @@ -7918,7 +7912,7 @@ BUILDIN_FUNC(getusers) BUILDIN_FUNC(getusersname) { TBL_PC *sd, *pl_sd; - int i=0,disp_num=1; + int disp_num=1; struct s_mapiterator* iter; sd = script_rid2sd(st); |