2005-10-20 17:45:00 +02:00
|
|
|
/*
|
2005-11-26 17:52:51 +01:00
|
|
|
xml_loadsave_teams.c
|
|
|
|
|
2005-10-20 17:45:00 +02:00
|
|
|
Bygfoot Football Manager -- a small and simple GTK2-based
|
|
|
|
football management game.
|
|
|
|
|
|
|
|
http://bygfoot.sourceforge.net
|
|
|
|
|
|
|
|
Copyright (C) 2005 Gyözö Both (gyboth@bygfoot.com)
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
2005-04-06 00:14:39 +02:00
|
|
|
#include "file.h"
|
|
|
|
#include "misc.h"
|
|
|
|
#include "player.h"
|
|
|
|
#include "team.h"
|
|
|
|
#include "xml.h"
|
2005-07-08 19:34:10 +02:00
|
|
|
#include "xml_loadsave_players.h"
|
2005-04-06 00:14:39 +02:00
|
|
|
#include "xml_loadsave_teams.h"
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
TAG_TEAMS = TAG_START_TEAMS,
|
|
|
|
TAG_TEAM,
|
2005-06-15 10:22:40 +02:00
|
|
|
TAG_TEAM_NAMES_FILE,
|
2005-04-06 00:14:39 +02:00
|
|
|
TAG_TEAM_STRUCTURE,
|
|
|
|
TAG_TEAM_STYLE,
|
|
|
|
TAG_TEAM_BOOST,
|
2005-04-13 15:01:59 +02:00
|
|
|
TAG_TEAM_CLID,
|
2005-10-24 22:50:48 +02:00
|
|
|
TAG_TEAM_STRATEGY_SID,
|
2005-04-06 00:14:39 +02:00
|
|
|
TAG_TEAM_STADIUM,
|
2005-06-21 15:33:16 +02:00
|
|
|
TAG_TEAM_STADIUM_NAME,
|
2005-04-06 00:14:39 +02:00
|
|
|
TAG_TEAM_STADIUM_CAPACITY,
|
|
|
|
TAG_TEAM_STADIUM_AVERAGE_ATTENDANCE,
|
|
|
|
TAG_TEAM_STADIUM_POSSIBLE_ATTENDANCE,
|
|
|
|
TAG_TEAM_STADIUM_GAMES,
|
|
|
|
TAG_TEAM_STADIUM_SAFETY,
|
2006-12-10 15:43:16 +01:00
|
|
|
TAG_TEAM_LUCK,
|
2008-10-28 16:27:28 +01:00
|
|
|
TAG_TEAM_STADIUM_TICKET_PRICE,
|
2020-10-02 16:23:25 +02:00
|
|
|
TAG_TEAM_FIRST_TEAM_SID,
|
|
|
|
TAG_TEAM_FIRST_TEAM_ID,
|
|
|
|
TAG_TEAM_RESERVE_LEVEL,
|
2005-04-06 00:14:39 +02:00
|
|
|
TAG_END
|
|
|
|
};
|
|
|
|
|
2005-05-19 21:43:22 +02:00
|
|
|
gint state, etalidx, careeridx;
|
2021-03-18 20:04:52 +01:00
|
|
|
GPtrArray *teams_array;
|
|
|
|
Team *new_team;
|
2005-04-06 00:14:39 +02:00
|
|
|
Player new_player;
|
|
|
|
PlayerGamesGoals new_games_goals;
|
|
|
|
PlayerCard new_card;
|
|
|
|
|
|
|
|
void
|
|
|
|
xml_loadsave_teams_start_element (GMarkupParseContext *context,
|
2005-07-08 19:34:10 +02:00
|
|
|
const gchar *element_name,
|
|
|
|
const gchar **attribute_names,
|
|
|
|
const gchar **attribute_values,
|
|
|
|
gpointer user_data,
|
|
|
|
GError **error)
|
2005-04-06 00:14:39 +02:00
|
|
|
{
|
2008-11-25 14:50:07 +01:00
|
|
|
#ifdef DEBUG
|
|
|
|
printf("xml_loadsave_teams_start_element\n");
|
|
|
|
#endif
|
|
|
|
|
2005-04-06 00:14:39 +02:00
|
|
|
gint i;
|
|
|
|
gint tag = xml_get_tag_from_name(element_name);
|
|
|
|
gboolean valid_tag = FALSE;
|
|
|
|
|
|
|
|
for(i=TAG_TEAMS;i<TAG_END;i++)
|
|
|
|
if(tag == i)
|
|
|
|
{
|
|
|
|
state = i;
|
|
|
|
valid_tag = TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
for(i=TAG_NAME;i<=TAG_ROUND;i++)
|
|
|
|
if(tag == i)
|
|
|
|
{
|
|
|
|
state = i;
|
|
|
|
valid_tag = TRUE;
|
|
|
|
}
|
|
|
|
|
2021-03-18 20:04:52 +01:00
|
|
|
if(tag == TAG_TEAM) {
|
|
|
|
new_team = g_malloc0(sizeof(Team));
|
|
|
|
*new_team = team_new(FALSE);
|
|
|
|
} else if(tag >= TAG_START_PLAYERS && tag <= TAG_END_PLAYERS)
|
2005-04-06 00:14:39 +02:00
|
|
|
{
|
2005-07-08 19:34:10 +02:00
|
|
|
valid_tag = TRUE;
|
|
|
|
state = TAG_START_PLAYERS;
|
2021-03-18 20:04:52 +01:00
|
|
|
xml_loadsave_players_start_element(tag, new_team);
|
2005-04-06 00:14:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if(!valid_tag)
|
2009-04-29 19:18:54 +02:00
|
|
|
debug_print_message("xml_loadsave_teams_start_element: unknown tag: %s; I'm in state %d\n",
|
2005-04-06 00:14:39 +02:00
|
|
|
element_name, state);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
xml_loadsave_teams_end_element (GMarkupParseContext *context,
|
2005-07-08 19:34:10 +02:00
|
|
|
const gchar *element_name,
|
|
|
|
gpointer user_data,
|
|
|
|
GError **error)
|
2005-04-06 00:14:39 +02:00
|
|
|
{
|
2008-11-25 14:50:07 +01:00
|
|
|
#ifdef DEBUG
|
|
|
|
printf("xml_loadsave_teams_end_element\n");
|
|
|
|
#endif
|
|
|
|
|
2005-04-06 00:14:39 +02:00
|
|
|
gint tag = xml_get_tag_from_name(element_name);
|
|
|
|
|
|
|
|
if(tag == TAG_TEAM)
|
|
|
|
{
|
|
|
|
state = TAG_TEAMS;
|
2021-03-18 20:04:52 +01:00
|
|
|
g_ptr_array_add(teams_array, new_team);
|
2005-04-06 00:14:39 +02:00
|
|
|
}
|
|
|
|
else if(tag == TAG_NAME ||
|
|
|
|
tag == TAG_SYMBOL ||
|
2005-06-15 10:22:40 +02:00
|
|
|
tag == TAG_TEAM_NAMES_FILE ||
|
2005-04-06 00:14:39 +02:00
|
|
|
tag == TAG_TEAM_ID ||
|
|
|
|
tag == TAG_TEAM_CLID ||
|
2005-10-24 22:50:48 +02:00
|
|
|
tag == TAG_TEAM_STRATEGY_SID ||
|
2005-04-06 00:14:39 +02:00
|
|
|
tag == TAG_TEAM_STRUCTURE ||
|
|
|
|
tag == TAG_TEAM_STYLE ||
|
|
|
|
tag == TAG_TEAM_BOOST ||
|
2006-12-10 15:43:16 +01:00
|
|
|
tag == TAG_TEAM_STADIUM ||
|
2020-10-02 16:23:25 +02:00
|
|
|
tag == TAG_TEAM_FIRST_TEAM_SID ||
|
|
|
|
tag == TAG_TEAM_FIRST_TEAM_ID ||
|
|
|
|
tag == TAG_TEAM_RESERVE_LEVEL ||
|
2006-12-10 15:43:16 +01:00
|
|
|
tag == TAG_TEAM_LUCK)
|
2005-04-06 00:14:39 +02:00
|
|
|
state = TAG_TEAM;
|
2005-06-21 15:33:16 +02:00
|
|
|
else if(tag == TAG_TEAM_STADIUM_NAME ||
|
|
|
|
tag == TAG_TEAM_STADIUM_CAPACITY ||
|
2005-04-06 00:14:39 +02:00
|
|
|
tag == TAG_TEAM_STADIUM_AVERAGE_ATTENDANCE ||
|
|
|
|
tag == TAG_TEAM_STADIUM_POSSIBLE_ATTENDANCE ||
|
|
|
|
tag == TAG_TEAM_STADIUM_GAMES ||
|
2008-10-28 16:27:28 +01:00
|
|
|
tag == TAG_TEAM_STADIUM_TICKET_PRICE ||
|
2005-04-06 00:14:39 +02:00
|
|
|
tag == TAG_TEAM_STADIUM_SAFETY)
|
|
|
|
state = TAG_TEAM_STADIUM;
|
2005-07-08 19:34:10 +02:00
|
|
|
else if(tag >= TAG_START_PLAYERS && tag <= TAG_END_PLAYERS)
|
2005-04-06 00:14:39 +02:00
|
|
|
{
|
2021-03-18 20:04:52 +01:00
|
|
|
xml_loadsave_players_end_element(tag, new_team->players);
|
2005-07-08 19:34:10 +02:00
|
|
|
if(tag == TAG_START_PLAYERS)
|
|
|
|
state = TAG_TEAM;
|
2005-04-06 00:14:39 +02:00
|
|
|
}
|
|
|
|
else if(tag != TAG_TEAMS)
|
2009-04-29 19:18:54 +02:00
|
|
|
debug_print_message("xml_loadsave_teams_end_element: unknown tag: %s; I'm in state %d\n",
|
2005-04-06 00:14:39 +02:00
|
|
|
element_name, state);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
xml_loadsave_teams_text (GMarkupParseContext *context,
|
2005-07-08 19:34:10 +02:00
|
|
|
const gchar *text,
|
|
|
|
gsize text_len,
|
|
|
|
gpointer user_data,
|
|
|
|
GError **error)
|
2005-04-06 00:14:39 +02:00
|
|
|
{
|
2008-11-25 14:50:07 +01:00
|
|
|
#ifdef DEBUG
|
|
|
|
printf("xml_loadsave_teams_text\n");
|
|
|
|
#endif
|
|
|
|
|
2005-04-06 00:14:39 +02:00
|
|
|
gchar buf[SMALL];
|
|
|
|
gint int_value = -1;
|
|
|
|
gfloat float_value = -1;
|
|
|
|
|
|
|
|
strncpy(buf, text, text_len);
|
|
|
|
buf[text_len] = '\0';
|
|
|
|
|
|
|
|
int_value = (gint)g_ascii_strtod(buf, NULL);
|
|
|
|
float_value = (gfloat)g_ascii_strtod(buf, NULL) / 10000;
|
|
|
|
|
|
|
|
if(state == TAG_NAME)
|
2021-03-18 20:04:52 +01:00
|
|
|
misc_string_assign(&new_team->name, buf);
|
2005-04-06 00:14:39 +02:00
|
|
|
else if(state == TAG_SYMBOL)
|
2021-03-18 20:04:52 +01:00
|
|
|
misc_string_assign(&new_team->symbol, buf);
|
2005-06-15 10:22:40 +02:00
|
|
|
else if(state == TAG_TEAM_NAMES_FILE)
|
2021-03-18 20:04:52 +01:00
|
|
|
misc_string_assign(&new_team->names_file, buf);
|
2005-04-06 00:14:39 +02:00
|
|
|
else if(state == TAG_TEAM_CLID)
|
2021-03-18 20:04:52 +01:00
|
|
|
new_team->clid = int_value;
|
2005-10-24 22:50:48 +02:00
|
|
|
else if(state == TAG_TEAM_STRATEGY_SID)
|
2021-03-18 20:04:52 +01:00
|
|
|
misc_string_assign(&new_team->strategy_sid, buf);
|
2005-04-06 00:14:39 +02:00
|
|
|
else if(state == TAG_TEAM_ID)
|
2021-03-18 20:04:52 +01:00
|
|
|
new_team->id = int_value;
|
2005-04-06 00:14:39 +02:00
|
|
|
else if(state == TAG_TEAM_STRUCTURE)
|
2021-03-18 20:04:52 +01:00
|
|
|
new_team->structure = int_value;
|
2005-04-06 00:14:39 +02:00
|
|
|
else if(state == TAG_TEAM_STYLE)
|
2021-03-18 20:04:52 +01:00
|
|
|
new_team->style = int_value;
|
2005-04-06 00:14:39 +02:00
|
|
|
else if(state == TAG_TEAM_BOOST)
|
2021-03-18 20:04:52 +01:00
|
|
|
new_team->boost = int_value;
|
2005-06-21 15:33:16 +02:00
|
|
|
else if(state == TAG_TEAM_STADIUM_NAME)
|
2021-03-18 20:04:52 +01:00
|
|
|
misc_string_assign(&new_team->stadium.name, buf);
|
2005-04-06 00:14:39 +02:00
|
|
|
else if(state == TAG_TEAM_STADIUM_CAPACITY)
|
2021-03-18 20:04:52 +01:00
|
|
|
new_team->stadium.capacity = int_value;
|
2005-04-06 00:14:39 +02:00
|
|
|
else if(state == TAG_TEAM_STADIUM_AVERAGE_ATTENDANCE)
|
2021-03-18 20:04:52 +01:00
|
|
|
new_team->stadium.average_attendance = int_value;
|
2005-04-06 00:14:39 +02:00
|
|
|
else if(state == TAG_TEAM_STADIUM_POSSIBLE_ATTENDANCE)
|
2021-03-18 20:04:52 +01:00
|
|
|
new_team->stadium.possible_attendance = int_value;
|
2005-04-06 00:14:39 +02:00
|
|
|
else if(state == TAG_TEAM_STADIUM_GAMES)
|
2021-03-18 20:04:52 +01:00
|
|
|
new_team->stadium.games = int_value;
|
2005-04-06 00:14:39 +02:00
|
|
|
else if(state == TAG_TEAM_STADIUM_SAFETY)
|
2021-03-18 20:04:52 +01:00
|
|
|
new_team->stadium.safety = float_value;
|
2008-10-28 16:27:28 +01:00
|
|
|
else if(state == TAG_TEAM_STADIUM_TICKET_PRICE)
|
2021-03-18 20:04:52 +01:00
|
|
|
new_team->stadium.ticket_price = float_value;
|
2006-12-10 15:43:16 +01:00
|
|
|
else if(state == TAG_TEAM_LUCK)
|
2021-03-18 20:04:52 +01:00
|
|
|
new_team->luck = float_value;
|
2020-10-02 16:23:25 +02:00
|
|
|
else if(state == TAG_TEAM_FIRST_TEAM_SID)
|
2021-03-18 20:04:52 +01:00
|
|
|
misc_string_assign(&new_team->first_team_sid, buf);
|
2020-10-02 16:23:25 +02:00
|
|
|
else if(state == TAG_TEAM_FIRST_TEAM_ID)
|
2021-03-18 20:04:52 +01:00
|
|
|
new_team->first_team_id = int_value;
|
2020-10-02 16:23:25 +02:00
|
|
|
else if(state == TAG_TEAM_RESERVE_LEVEL)
|
2021-03-18 20:04:52 +01:00
|
|
|
new_team->reserve_level = int_value;
|
2005-07-08 19:34:10 +02:00
|
|
|
else if(state >= TAG_START_PLAYERS && state <= TAG_END_PLAYERS)
|
|
|
|
xml_loadsave_players_text(buf);
|
2005-04-06 00:14:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2021-03-18 20:04:52 +01:00
|
|
|
xml_loadsave_teams_read(const gchar *filename, GPtrArray *teams)
|
2005-04-06 00:14:39 +02:00
|
|
|
{
|
2008-11-25 14:50:07 +01:00
|
|
|
#ifdef DEBUG
|
|
|
|
printf("xml_loadsave_teams_read\n");
|
|
|
|
#endif
|
|
|
|
|
2005-04-06 00:14:39 +02:00
|
|
|
gint i, j;
|
|
|
|
GMarkupParser parser = {xml_loadsave_teams_start_element,
|
|
|
|
xml_loadsave_teams_end_element,
|
|
|
|
xml_loadsave_teams_text, NULL, NULL};
|
|
|
|
GMarkupParseContext *context;
|
|
|
|
gchar *file_contents;
|
2006-06-04 19:10:08 +02:00
|
|
|
gsize length;
|
2005-04-06 00:14:39 +02:00
|
|
|
GError *error = NULL;
|
|
|
|
|
|
|
|
context =
|
|
|
|
g_markup_parse_context_new(&parser, 0, NULL, NULL);
|
|
|
|
|
|
|
|
if(!g_file_get_contents(filename, &file_contents, &length, &error))
|
|
|
|
{
|
2009-04-29 19:18:54 +02:00
|
|
|
debug_print_message("xml_loadsave_teams_read: error reading file %s\n", filename);
|
2005-04-06 00:14:39 +02:00
|
|
|
misc_print_error(&error, TRUE);
|
|
|
|
}
|
|
|
|
|
|
|
|
teams_array = teams;
|
|
|
|
|
|
|
|
if(g_markup_parse_context_parse(context, file_contents, length, &error))
|
|
|
|
{
|
|
|
|
g_markup_parse_context_end_parse(context, NULL);
|
|
|
|
g_markup_parse_context_free(context);
|
|
|
|
g_free(file_contents);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2009-04-29 19:18:54 +02:00
|
|
|
debug_print_message("xml_loadsave_teams_read: error parsing file %s\n", filename);
|
2005-04-06 00:14:39 +02:00
|
|
|
misc_print_error(&error, TRUE);
|
|
|
|
}
|
|
|
|
|
2021-03-18 20:04:52 +01:00
|
|
|
for(i=0;i<teams->len;i++) {
|
|
|
|
Team *team = g_ptr_array_index(teams, i);
|
|
|
|
for(j=0;j<team->players->len;j++)
|
|
|
|
g_array_index(team->players, Player, j).team = team;
|
|
|
|
}
|
2005-04-06 00:14:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2021-03-18 20:04:52 +01:00
|
|
|
xml_loadsave_teams_write(const gchar *filename, const GPtrArray *teams)
|
2005-04-06 00:14:39 +02:00
|
|
|
{
|
2008-11-25 14:50:07 +01:00
|
|
|
#ifdef DEBUG
|
|
|
|
printf("xml_loadsave_teams_write\n");
|
|
|
|
#endif
|
|
|
|
|
2005-04-06 00:14:39 +02:00
|
|
|
gint i;
|
|
|
|
FILE *fil = NULL;
|
|
|
|
|
|
|
|
file_my_fopen(filename, "w", &fil, TRUE);
|
|
|
|
|
|
|
|
fprintf(fil, "<_%d>\n", TAG_TEAMS);
|
|
|
|
for(i=0;i<teams->len;i++)
|
2021-03-18 20:04:52 +01:00
|
|
|
xml_loadsave_teams_write_team(fil, g_ptr_array_index(teams, i));
|
2005-04-06 00:14:39 +02:00
|
|
|
|
|
|
|
fprintf(fil, "</_%d>\n", TAG_TEAMS);
|
|
|
|
|
|
|
|
fclose(fil);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
xml_loadsave_teams_write_team(FILE *fil, const Team* team)
|
|
|
|
{
|
2008-11-25 14:50:07 +01:00
|
|
|
#ifdef DEBUG
|
|
|
|
printf("xml_loadsave_teams_write_team\n");
|
|
|
|
#endif
|
|
|
|
|
2005-04-06 00:14:39 +02:00
|
|
|
fprintf(fil, "<_%d>\n", TAG_TEAM);
|
|
|
|
|
2005-10-09 11:35:44 +02:00
|
|
|
xml_write_string(fil, team->name, TAG_NAME, I1);
|
|
|
|
xml_write_string(fil, team->symbol, TAG_SYMBOL, I1);
|
|
|
|
xml_write_string(fil, team->names_file, TAG_TEAM_NAMES_FILE, I1);
|
2005-10-24 22:50:48 +02:00
|
|
|
xml_write_string(fil, team->strategy_sid, TAG_TEAM_STRATEGY_SID, I1);
|
2020-10-02 16:23:25 +02:00
|
|
|
xml_write_string(fil, team->first_team_sid, TAG_TEAM_FIRST_TEAM_SID, I1);
|
2005-10-24 22:50:48 +02:00
|
|
|
|
2005-04-06 00:14:39 +02:00
|
|
|
xml_write_int(fil, team->clid, TAG_TEAM_CLID, I1);
|
|
|
|
xml_write_int(fil, team->id, TAG_TEAM_ID, I1);
|
|
|
|
xml_write_int(fil, team->structure, TAG_TEAM_STRUCTURE, I1);
|
|
|
|
xml_write_int(fil, team->style, TAG_TEAM_STYLE, I1);
|
|
|
|
xml_write_int(fil, team->boost, TAG_TEAM_BOOST, I1);
|
2020-10-02 16:23:25 +02:00
|
|
|
xml_write_int(fil, team->first_team_id, TAG_TEAM_FIRST_TEAM_ID, I1);
|
|
|
|
xml_write_int(fil, team->reserve_level, TAG_TEAM_RESERVE_LEVEL, I1);
|
2005-10-24 22:50:48 +02:00
|
|
|
|
2005-04-06 00:14:39 +02:00
|
|
|
fprintf(fil, "%s<_%d>\n", I1, TAG_TEAM_STADIUM);
|
|
|
|
|
2005-06-21 15:33:16 +02:00
|
|
|
if(team->stadium.name != NULL)
|
2005-10-09 11:35:44 +02:00
|
|
|
xml_write_string(fil, team->stadium.name, TAG_TEAM_STADIUM_NAME, I2);
|
2005-06-21 15:33:16 +02:00
|
|
|
|
2005-04-06 00:14:39 +02:00
|
|
|
xml_write_int(fil, team->stadium.capacity, TAG_TEAM_STADIUM_CAPACITY, I2);
|
|
|
|
xml_write_int(fil, team->stadium.average_attendance, TAG_TEAM_STADIUM_AVERAGE_ATTENDANCE, I2);
|
|
|
|
xml_write_int(fil, team->stadium.possible_attendance, TAG_TEAM_STADIUM_POSSIBLE_ATTENDANCE, I2);
|
|
|
|
xml_write_int(fil, team->stadium.games, TAG_TEAM_STADIUM_GAMES, I2);
|
|
|
|
xml_write_float(fil, team->stadium.safety, TAG_TEAM_STADIUM_SAFETY, I2);
|
2008-10-28 16:27:28 +01:00
|
|
|
xml_write_float(fil, team->stadium.ticket_price, TAG_TEAM_STADIUM_TICKET_PRICE, I2);
|
2005-04-06 00:14:39 +02:00
|
|
|
|
|
|
|
fprintf(fil, "%s</_%d>\n", I1, TAG_TEAM_STADIUM);
|
|
|
|
|
2005-07-08 19:34:10 +02:00
|
|
|
xml_loadsave_players_write(fil, team->players);
|
2005-04-06 00:14:39 +02:00
|
|
|
|
2006-12-10 15:43:16 +01:00
|
|
|
xml_write_float(fil, team->luck, TAG_TEAM_LUCK, I1);
|
|
|
|
|
2005-04-06 00:14:39 +02:00
|
|
|
fprintf(fil, "</_%d>\n", TAG_TEAM);
|
|
|
|
}
|