summaryrefslogtreecommitdiff
path: root/src/map/guild.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-04 17:41:02 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-04 17:41:02 +0000
commitb1d783c36feed8d4969b4acda97f95bf9e8840e0 (patch)
tree423e332076470d4eed96cbcab32797c1859a4ea4 /src/map/guild.c
parent42c2247176bc352db321768b893086cb89383c39 (diff)
downloadhercules-b1d783c36feed8d4969b4acda97f95bf9e8840e0.tar.gz
hercules-b1d783c36feed8d4969b4acda97f95bf9e8840e0.tar.bz2
hercules-b1d783c36feed8d4969b4acda97f95bf9e8840e0.tar.xz
hercules-b1d783c36feed8d4969b4acda97f95bf9e8840e0.zip
- Changed some pc_authfails to clif_authfail_fd since pc_authfail prints errors when invoked after a char is auth'ed.
- Added a static +100 Hp to ninjas and gunslingers since it's required for the best approximated hp growth algorythm. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9404 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/guild.c')
-rw-r--r--src/map/guild.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index 459c2f42e..1fe0f526d 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -450,16 +450,16 @@ int guild_created(int account_id,int guild_id)
if(sd==NULL)
return 0;
- if(guild_id>0) {
- //struct guild *g;
- sd->status.guild_id=guild_id;
- sd->state.guild_sent=0;
- clif_guild_created(sd,0);
- if(battle_config.guild_emperium_check)
- pc_delitem(sd,pc_search_inventory(sd,714),1,0); // エンペリウム消耗
- } else {
+ if(!guild_id) {
clif_guild_created(sd,2); // 作成失敗(同名ギルド存在)
+ return 0;
}
+ //struct guild *g;
+ sd->status.guild_id=guild_id;
+ sd->state.guild_sent=0;
+ clif_guild_created(sd,0);
+ if(battle_config.guild_emperium_check)
+ pc_delitem(sd,pc_search_inventory(sd,714),1,0); // エンペリウム消耗
return 0;
}