summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-12 09:41:51 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-12 09:41:51 +0000
commit1c5fab35e935b870939bcae24ea95e957ed76d5a (patch)
treed139ebbdd15d78fbfc4835da6074168c378a0e1c /src/char
parent76c1280eedaf3327eb15af0290ab7781ff703633 (diff)
downloadhercules-1c5fab35e935b870939bcae24ea95e957ed76d5a.tar.gz
hercules-1c5fab35e935b870939bcae24ea95e957ed76d5a.tar.bz2
hercules-1c5fab35e935b870939bcae24ea95e957ed76d5a.tar.xz
hercules-1c5fab35e935b870939bcae24ea95e957ed76d5a.zip
Removed the badly designed/unfinished guild_check_conflict() data integrity check (that wasn't actually being used up 'till now).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11894 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char')
-rw-r--r--src/char/int_guild.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/char/int_guild.c b/src/char/int_guild.c
index 0dad789fb..6332d33b7 100644
--- a/src/char/int_guild.c
+++ b/src/char/int_guild.c
@@ -548,35 +548,6 @@ int guild_check_empty(struct guild *g) {
return 1;
}
-// キャラの競合がないかチェック用
-int guild_check_conflict_sub(DBKey key, void *data, va_list ap) {
- struct guild *g = (struct guild *)data;
- int guild_id, account_id, char_id, i;
-
- guild_id = va_arg(ap, int);
- account_id = va_arg(ap, int);
- char_id = va_arg(ap, int);
-
- if (g->guild_id == guild_id) // 本来の所属なので問題なし
- return 0;
-
- for(i = 0; i < MAX_GUILD; i++) {
- if (g->member[i].account_id == account_id && g->member[i].char_id == char_id) {
- // 別のギルドに偽の所属データがあるので脱退
- ShowWarning("int_guild: guild conflict! %d,%d %d!=%d\n", account_id, char_id, guild_id, g->guild_id);
- mapif_parse_GuildLeave(-1, g->guild_id, account_id, char_id, 0, "**データ競合**");
- }
- }
-
- return 0;
-}
-// キャラの競合がないかチェック
-int guild_check_conflict(int guild_id, int account_id, int char_id) {
- guild_db->foreach(guild_db, guild_check_conflict_sub, guild_id, account_id, char_id);
-
- return 0;
-}
-
unsigned int guild_nextexp (int level)
{
if (level == 0)
@@ -1492,11 +1463,6 @@ int mapif_parse_GuildCastleDataSave(int fd, int castle_id, int index, int value)
return mapif_guild_castle_datasave(gc->castle_id, index, value);
}
-// ギルドチェック要求
-int mapif_parse_GuildCheck(int fd, int guild_id, int account_id, int char_id) {
- return guild_check_conflict(guild_id, account_id, char_id);
-}
-
int mapif_parse_GuildMasterChange(int fd, int guild_id, const char* name, int len)
{
struct guild *g = idb_get(guild_db, guild_id);
@@ -1539,7 +1505,6 @@ int inter_guild_parse_frommap(int fd) {
case 0x3035: mapif_parse_GuildChangeMemberInfoShort(fd, RFIFOL(fd,2), RFIFOL(fd,6), RFIFOL(fd,10), RFIFOB(fd,14), RFIFOW(fd,15), RFIFOW(fd,17)); break;
case 0x3036: mapif_parse_BreakGuild(fd, RFIFOL(fd,2)); break;
case 0x3037: mapif_parse_GuildMessage(fd, RFIFOL(fd,4), RFIFOL(fd,8), (char*)RFIFOP(fd,12), RFIFOW(fd,2)-12); break;
- case 0x3038: mapif_parse_GuildCheck(fd, RFIFOL(fd,2), RFIFOL(fd,6), RFIFOL(fd,10)); break;
case 0x3039: mapif_parse_GuildBasicInfoChange(fd, RFIFOL(fd,4), RFIFOW(fd,8), (const char*)RFIFOP(fd,10), RFIFOW(fd,2)-10); break;
case 0x303A: mapif_parse_GuildMemberInfoChange(fd, RFIFOL(fd,4), RFIFOL(fd,8), RFIFOL(fd,12), RFIFOW(fd,16), (const char*)RFIFOP(fd,18), RFIFOW(fd,2)-18); break;
case 0x303B: mapif_parse_GuildPosition(fd, RFIFOL(fd,4), RFIFOL(fd,8), (struct guild_position *)RFIFOP(fd,12)); break;