Remove reference to deleted picture

This commit is contained in:
Tom Stellard 2020-12-24 10:49:42 -08:00 committed by Tom Stellard
parent 4e40b4fa18
commit 19dce90fa2
3 changed files with 0 additions and 37 deletions

View File

@ -294,27 +294,3 @@ debug_calibrate_betting_odds(gint skilldiffmax, gint matches_per_skilldiff)
(gfloat)res[1] / (gfloat)matches, (gfloat)res[2] / (gfloat)matches);
}
}
/** Check whether the 4 forwards, boost on, style all-out-attack
easter egg should be activated. */
gboolean
debug_egg_forwards_boost_style(void)
{
#ifdef DEBUG
printf("debug_egg_forwards_boost_style\n");
#endif
gint i, fwds = 0;
if(current_user.tm->boost != 1 ||
current_user.tm->style != 2 ||
current_user.tm->players->len < 11)
return FALSE;
for(i=0;i<11;i++)
if(g_array_index(current_user.tm->players, Player, i).cpos == 3 &&
g_array_index(current_user.tm->players, Player, i).cskill > 0)
fwds++;
return (fwds > 3);
}

View File

@ -45,9 +45,6 @@ debug_reset_counter(gpointer data);
void
debug_calibrate_betting_odds(gint skilldiffmax, gint matches_per_skilldiff);
gboolean
debug_egg_forwards_boost_style(void);
void
debug_writer_out(const gchar *file_name,
const gchar *method_name,

View File

@ -202,16 +202,6 @@ window_show_progress(gint pictype)
GTK_ICON_SIZE_DIALOG);
break;
case PIC_TYPE_MATCHPIC:
if(debug_egg_forwards_boost_style())
{
buf2 = file_find_support_file("soccerbabes.jpg", FALSE);
if(buf2 != NULL)
{
gtk_image_set_from_file(image, buf2);
g_free(buf2);
}
}
if(buf2 == NULL)
{
picdir = file_get_first_support_dir_suffix("pics");