summaryrefslogtreecommitdiff
path: root/src/map/guild.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-22 15:38:30 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-22 15:38:30 +0000
commit5f2901fbbb6d4f7deafa6f1a6638ca7f1d4dce87 (patch)
treee7a97e0f0c6fe330ceaafd5e74af71c04e8c27cf /src/map/guild.c
parenta65e4681cd29db1d0936523cc8ff5646dc7dca5b (diff)
downloadhercules-5f2901fbbb6d4f7deafa6f1a6638ca7f1d4dce87.tar.gz
hercules-5f2901fbbb6d4f7deafa6f1a6638ca7f1d4dce87.tar.bz2
hercules-5f2901fbbb6d4f7deafa6f1a6638ca7f1d4dce87.tar.xz
hercules-5f2901fbbb6d4f7deafa6f1a6638ca7f1d4dce87.zip
- Simplified the global function "getJobName"
- Simplified function agitcheck so it isn't crash prone. Now it takes no arguments, and will return whether WoE is on or not. - Updated bundled scripts as required for this change. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9559 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/guild.c')
-rw-r--r--src/map/guild.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index a5db3664a..60643eede 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -1898,8 +1898,7 @@ int guild_agit_break(struct mob_data *md)
{ // Run One NPC_Event[OnAgitBreak]
char *evname;
- nullpo_retr(0, md);
-
+ if(!agit_flag) return 0; // Agit already End
evname=(char *)aMallocA((strlen(md->npc_event) + 1)*sizeof(char));
strcpy(evname,md->npc_event);
@@ -1908,7 +1907,6 @@ int guild_agit_break(struct mob_data *md)
// But Script will be stop, so nothing...
// Maybe will be changed in the futher..
// int c = npc_event_do(evname);
- if(!agit_flag) return 0; // Agit already End
add_timer(gettick()+battle_config.gvg_eliminate_time,guild_gvg_eliminate_timer,md->bl.m,(int)evname);
return 0;
}