Browse Source

- Fixed char-txt compilation.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8065 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 19 years ago
parent
commit
a70dcb58c6
1 changed files with 15 additions and 15 deletions
  1. 15 15
      src/char/int_guild.c

+ 15 - 15
src/char/int_guild.c

@@ -76,12 +76,12 @@ int inter_guild_tostr(char *str, struct guild *g) {
 	}
 	}
 	// 追放リスト
 	// 追放リスト
 	c = 0;
 	c = 0;
-	for(i = 0; i < MAX_GUILDEXPLUSION; i++)
-		if (g->explusion[i].account_id > 0)
+	for(i = 0; i < MAX_GUILDEXPULSION; i++)
+		if (g->expulsion[i].account_id > 0)
 			c++;
 			c++;
 	len += sprintf(str + len, "%d\t", c);
 	len += sprintf(str + len, "%d\t", c);
-	for(i = 0; i < MAX_GUILDEXPLUSION; i++) {
-		struct guild_explusion *e = &g->explusion[i];
+	for(i = 0; i < MAX_GUILDEXPULSION; i++) {
+		struct guild_expulsion *e = &g->expulsion[i];
 		if (e->account_id > 0)
 		if (e->account_id > 0)
 			len += sprintf(str + len, "%d,%d,%d,%d\t%s\t%s\t%s#\t",
 			len += sprintf(str + len, "%d,%d,%d,%d\t%s\t%s\t%s#\t",
 			               e->account_id, e->rsv1, e->rsv2, e->rsv3,
 			               e->account_id, e->rsv1, e->rsv2, e->rsv3,
@@ -211,7 +211,7 @@ int inter_guild_fromstr(char *str, struct guild *g) {
 		return 1;
 		return 1;
 	str = strchr(str + 1, '\t');	// 位置スキップ
 	str = strchr(str + 1, '\t');	// 位置スキップ
 	for(i = 0; i < c; i++) {
 	for(i = 0; i < c; i++) {
-		struct guild_explusion *e = &g->explusion[i];
+		struct guild_expulsion *e = &g->expulsion[i];
 		if (sscanf(str + 1, "%d,%d,%d,%d\t%[^\t]\t%[^\t]\t%[^\t]\t",
 		if (sscanf(str + 1, "%d,%d,%d,%d\t%[^\t]\t%[^\t]\t%[^\t]\t",
 		           &tmp_int[0], &tmp_int[1], &tmp_int[2], &tmp_int[3],
 		           &tmp_int[0], &tmp_int[1], &tmp_int[2], &tmp_int[3],
 		           tmp_str[0], tmp_str[1], tmp_str[2]) < 6)
 		           tmp_str[0], tmp_str[1], tmp_str[2]) < 6)
@@ -1056,19 +1056,19 @@ int mapif_parse_GuildLeave(int fd, int guild_id, int account_id, int char_id, in
 //				printf("%d %s\n", i, g->member[i].name);
 //				printf("%d %s\n", i, g->member[i].name);
 
 
 				if (flag) {	// 追放の場合追放リストに入れる
 				if (flag) {	// 追放の場合追放リストに入れる
-					for(j = 0; j < MAX_GUILDEXPLUSION; j++) {
-						if (g->explusion[j].account_id == 0)
+					for(j = 0; j < MAX_GUILDEXPULSION; j++) {
+						if (g->expulsion[j].account_id == 0)
 							break;
 							break;
 					}
 					}
-					if (j == MAX_GUILDEXPLUSION) {	// 一杯なので古いのを消す
-						for(j = 0; j < MAX_GUILDEXPLUSION - 1; j++)
-							g->explusion[j] = g->explusion[j+1];
-						j = MAX_GUILDEXPLUSION - 1;
+					if (j == MAX_GUILDEXPULSION) {	// 一杯なので古いのを消す
+						for(j = 0; j < MAX_GUILDEXPULSION - 1; j++)
+							g->expulsion[j] = g->expulsion[j+1];
+						j = MAX_GUILDEXPULSION - 1;
 					}
 					}
-					g->explusion[j].account_id = account_id;
-					memcpy(g->explusion[j].acc, "dummy", NAME_LENGTH-1);
-					memcpy(g->explusion[j].name, g->member[i].name, NAME_LENGTH-1);
-					memcpy(g->explusion[j].mes, mes, 40);
+					g->expulsion[j].account_id = account_id;
+					memcpy(g->expulsion[j].acc, "dummy", NAME_LENGTH-1);
+					memcpy(g->expulsion[j].name, g->member[i].name, NAME_LENGTH-1);
+					memcpy(g->expulsion[j].mes, mes, 40);
 				}
 				}
 
 
 				mapif_guild_leaved(guild_id, account_id, char_id, flag, g->member[i].name, mes);
 				mapif_guild_leaved(guild_id, account_id, char_id, flag, g->member[i].name, mes);