From 9827189a901458193bbc0c66081ae9a50576fd20 Mon Sep 17 00:00:00 2001 From: ultramage Date: Sun, 6 Jan 2008 16:37:06 +0000 Subject: 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 --- src/map/mob.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/map/mob.h') 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] -- cgit v1.2.3-70-g09d2