summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
author(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-04 23:22:34 +0000
committer(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-04 23:22:34 +0000
commitb91405aa5454bab5eeacd29d28a773812ef55b29 (patch)
tree7a468bf51a4b8c67f466a168d611578a9b057a1b /src/map/mob.c
parent414864ad8b4237cc31d03b020119a8cf978c30bc (diff)
downloadhercules-b91405aa5454bab5eeacd29d28a773812ef55b29.tar.gz
hercules-b91405aa5454bab5eeacd29d28a773812ef55b29.tar.bz2
hercules-b91405aa5454bab5eeacd29d28a773812ef55b29.tar.xz
hercules-b91405aa5454bab5eeacd29d28a773812ef55b29.zip
some item/mob db fixes
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1032 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index b381a4407..b8eac5d67 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -237,12 +237,13 @@ int mob_once_spawn_area(struct map_session_data *sd,char *mapname,
x=rand()%(x1-x0+1)+x0;
y=rand()%(y1-y0+1)+y0;
} while (map_getcell(m,x,y,CELL_CHKNOPASS) && (++j)<max);
+ // freya }while( ( (c=map_getcell(m,x,y))==1 || c==5)&& (++j)<max );
if(j>=max){
- if(lx>=0){ // 検索に失敗したので以前に沸いた場所を使う
+ if(lx>=0){ // Since reference went wrong, the place which boiled before is used.
x=lx;
y=ly;
}else
- return 0; // 最初に沸く場所の検索を失敗したのでやめる
+ return 0; // Since reference of the place which boils first went wrong, it stops.
}
if(x==0||y==0) printf("xory=0, x=%d,y=%d,x0=%d,y0=%d\n",x,y,x0,y0);
id=mob_once_spawn(sd,mapname,x,y,mobname,class_,1,event);