summaryrefslogtreecommitdiff
path: root/src/map/mob.h
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-06 16:37:06 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-06 16:37:06 +0000
commit9827189a901458193bbc0c66081ae9a50576fd20 (patch)
tree9b6f328cb3fdbb0ab890f24f3b9b854f833a9284 /src/map/mob.h
parent3adaf8788b65a84ec4266c6621d30679a95f546d (diff)
downloadhercules-9827189a901458193bbc0c66081ae9a50576fd20.tar.gz
hercules-9827189a901458193bbc0c66081ae9a50576fd20.tar.bz2
hercules-9827189a901458193bbc0c66081ae9a50576fd20.tar.xz
hercules-9827189a901458193bbc0c66081ae9a50576fd20.zip
Cleaned up mob_once_spawn() and mob_once_spawn_area().
- now they use mapid instead of mapname as input parameter - moved the responsibility to perform "this" -> mapid resolution to the caller - added a pair of swap() operations to prevent working with a negative-dimensioned area (fixes bugreport:87) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12022 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.h')
-rw-r--r--src/map/mob.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/map/mob.h b/src/map/mob.h
index 69b555deb..bdb35a21f 100644
--- a/src/map/mob.h
+++ b/src/map/mob.h
@@ -154,11 +154,8 @@ int mobdb_checkid(const int id);
struct view_data* mob_get_viewdata(int class_);
struct mob_data *mob_once_spawn_sub(struct block_list *bl, int m,
short x, short y, const char *mobname, int class_, const char *event);
-int mob_once_spawn(struct map_session_data *sd,const char *mapname,
- short x,short y,const char *mobname,int class_,int amount,const char *event);
-int mob_once_spawn_area(struct map_session_data *sd,const char *mapname,
- int x0,int y0,int x1,int y1,
- const char *mobname,int class_,int amount,const char *event);
+int mob_once_spawn(struct map_session_data* sd,int m,short x,short y,const char* mobname,int class_,int amount,const char* event);
+int mob_once_spawn_area(struct map_session_data* sd,int m,int x0,int y0,int x1,int y1,const char* mobname,int class_,int amount,const char* event);
int mob_spawn_guardian(const char* mapname, short x, short y, const char* mobname, int class_, const char* event, int guardian); // Spawning Guardians [Valaris]
int mob_guardian_guildchange(struct block_list *bl,va_list ap); //Change Guardian's ownership. [Skotlex]