mirror of
https://github.com/tstellar/bygfoot.git
synced 2024-12-16 10:21:15 +01:00
"Minor fixes."
This commit is contained in:
parent
4d584b34fb
commit
54cc54f5c4
@ -181,6 +181,9 @@ lg_commentary_replace_expressions(gchar *commentary_text)
|
||||
gint value = -1;
|
||||
gchar buf[SMALL], buf2[SMALL];
|
||||
|
||||
if(!g_strrstr(commentary_text, "["))
|
||||
return;
|
||||
|
||||
strcpy(buf, commentary_text);
|
||||
strcpy(commentary_text, "");
|
||||
|
||||
@ -205,7 +208,9 @@ lg_commentary_replace_expressions(gchar *commentary_text)
|
||||
g_strrstr(buf2, ">") ||
|
||||
g_strrstr(buf2, "=") ||
|
||||
g_strrstr(buf2, " G ") ||
|
||||
g_strrstr(buf2, " L "))
|
||||
g_strrstr(buf2, " L ") ||
|
||||
g_strrstr(buf2, " GE ") ||
|
||||
g_strrstr(buf2, " LE "))
|
||||
misc_parse(buf2, &value);
|
||||
else
|
||||
misc_parse_expression(buf2, &value);
|
||||
|
@ -1331,7 +1331,9 @@ live_game_finish_unit(void)
|
||||
g_strrstr(unit->event.commentary->str, ">") ||
|
||||
g_strrstr(unit->event.commentary->str, "=") ||
|
||||
g_strrstr(unit->event.commentary->str, " G ") ||
|
||||
g_strrstr(unit->event.commentary->str, " L "))
|
||||
g_strrstr(unit->event.commentary->str, " L ") ||
|
||||
g_strrstr(unit->event.commentary->str, " GE ") ||
|
||||
g_strrstr(unit->event.commentary->str, " LE "))
|
||||
printf(" ERROR?\n");
|
||||
else
|
||||
printf("\n");
|
||||
|
@ -984,7 +984,7 @@ user_mm_add_last_match(gboolean load_file, gboolean save_file)
|
||||
user_mm_load_file(current_user.mmatches_file->str, NULL);
|
||||
|
||||
g_array_append_val(current_user.mmatches, new);
|
||||
game_gui_print_message("Memorable match added.");
|
||||
game_gui_print_message(_("Memorable match added."));
|
||||
|
||||
if(save_file)
|
||||
user_mm_save_file(current_user.mmatches_file->str,
|
||||
|
@ -201,7 +201,7 @@ window_show_file_sel(void)
|
||||
window_show_mmatches();
|
||||
}
|
||||
else
|
||||
game_gui_show_warning("Not a valid Bygfoot Memorable Matches filename.");
|
||||
game_gui_show_warning(_("Not a valid Bygfoot Memorable Matches filename."));
|
||||
}
|
||||
else if(stat5 == STATUS_SELECT_MM_FILE_ADD)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user