Fixed the horses problem.

This commit is contained in:
gyboth 2009-01-11 15:24:26 +00:00
parent 9d67ab30bd
commit 9ac3481a6d
3 changed files with 7 additions and 3 deletions

View File

@ -164,6 +164,7 @@ debug_action(const gchar *text)
"pospref \t change recruiting pref\n"
"goto \t Press 'new week' automatically until\n"
" \t the appropriate week is reached\n"
" \t Supply 100+X to go to season X (e.g. 102)\n"
"testcom|tc \t Test a specific live game commentary.\n"
" \t Find the numbers in live_game_struct.h (LiveGameEventType)\n"
" \t Use 'goto' afterwards.\n"

View File

@ -1261,8 +1261,9 @@ player_remove_contract(Player *pl)
printf("player_remove_contract\n");
#endif
user_event_add(user_from_team(pl->team), EVENT_TYPE_PLAYER_LEFT, -1, -1, NULL,
pl->name);
if(debug < 50)
user_event_add(user_from_team(pl->team), EVENT_TYPE_PLAYER_LEFT, -1, -1, NULL,
pl->name);
player_remove_from_team(pl->team, player_id_index(pl->team, pl->id));
}

View File

@ -25,9 +25,11 @@
#include "cup.h"
#include "file.h"
#include "fixture.h"
#include "free.h"
#include "league_struct.h"
#include "misc.h"
#include "table.h"
#include "team.h"
#include "xml.h"
#include "xml_loadsave_cup.h"
@ -210,7 +212,7 @@ xml_loadsave_leagues_cups_write(const gchar *prefix)
void
xml_loadsave_leagues_cups_adjust_team_ptrs(void)
{
gint i, j, k, l;
gint i, j, k;
GPtrArray *team_ptrs;
for(i = 0; i < ligs->len; i++)