"Minor bug fix."

This commit is contained in:
gyboth 2005-09-09 15:17:16 +00:00
parent 54ac7f320b
commit 539a0f4e58
5 changed files with 121 additions and 20 deletions

105
ChangeLog
View File

@ -1,12 +1,109 @@
10/10/2004: v1.7.3
- introduced Arnaud Le Rouzic's XML load/save system (thanks,
Arnaud!)
- added possibility to compress savegames
09/10/2005: v1.9.1
- updated German and Dutch translations
- added Polish (complete), French (almost complete) and Romanian
(a.c.) translations
- added i18n support for the binary package
- transfer offers are remembered
- added sponsorship money
- fixed some minor bugs
- improved live game commentary (moved to XML files, added
conditions etc.)
- added country definitions for Australia, Victoria (Australia),
Spain and Serbia&Montenegro
- added youth academy
- added experimental Windows port (thanks to Simon Binns)
- improved definition system
- added memorable matches feature
06/18/2005: v1.9.0
- complete rewriting of the game, too many changes to count them
and keep them in mind. among the most important ones are:
- real interactive live game
- hotseat multiplayer
- extremely flexible and customizable country definitions
- country-specific player names
- constants determining game behaviour are loaded from a text file
making it easy to change and fine-tune the game
06/18/2005: v1.8.2
- corrected a bug in the update script
- fixed the job offer bug
- added some more keyboard shortcuts
- corrected a 'ghost-player'-bug after a transfer
01/30/2005: v1.8.1
- added Dutch translation and country file for Belgium (thanks to
ATD)
- fixed a bug that prevented loading of custom country files
- fixed a season objective bug
- fixed a floating point bug (thanks to Ken Brush)
01/30/2005: v1.8.0 (changes compared to 1.6.3)
- added a lot of new and fine icons (thanks to Vector)
- added GeoVah's season objective patch (thanks, GeoVah)
- added possibility to disable savegame compression
- stadium events are less harsh
- there are more players from lower leagues on the transfer list
- switched the load/save system to XML, making it slower but more
flexible (thanks to Arnaud Le Rouzic for valuable help)
- improved the options window (tabs make it more orderly now)
- added second player list (also with tabs)
- complete Bygfoot packages can be downloaded with the update
script now
- added gettext support and French, German, Russian, Hungarian,
Romanian and Portuguese translations (see AUTHORS)
- fixed a bug concerning own goals in live games
- added player and team 'histories'
- added boost feature
- added country file for Mexico (thanks to Arturo Mendez)
- added country files for Chile (thanks to Julio Saldivar)
- improved the update script
- added a simple gui for the script
- added updated country file for Italy (thanks to Marco Fabbri)
- fixed a bug that led to no ticket income for cup games
- fixed a bug that occurred when you made a stadium enlargement
over several weeks
- replaced official team names with city names because of
trademark issues (the official names can be downloaded from
http://www.bygfoot.com)
- removed official player names because of the same reason (you
can still download them from the homepage)
- added injuries and cards display for opponent teams in the match
summary
- clicking on a team name in the tables shows the team's player list
- clicking on a fixture shows the player list of one of the teams,
depending on the mouse button you use
- job offers show a lot more information on the team offering the
job
- a player can suffer an injury that forces him to retire
- added own goals and penalties in regulation and extra time
- added reasons why a player was banned (thanks to Tom Chance for
the correct football expressions)
- added player and some more team awards (with prize money) at the
end of a season
NOTE: The 1.8 branch is not savegame-compatible to the 1.6.x
versions.
11/23/2004: v1.7.3
- switched the load/save system to XML, making it slower but more
flexible (thanks to Arnaud Le Rouzic for valuable help)
- improved the options window (tabs make it more orderly now)
- added second player list (also with tabs)
- complete Bygfoot packages can be downloaded with the update
script now
- added gettext support and French, German, Russian, Hungarian,
Romanian and Portuguese translations
- fixed a bug concerning own goals in live games
- added player and team 'histories'
- added boost feature
11/23/2004: v1.6.3
- fixed a bug that caused the game to interpret promotion game
home/away results incorrectly
- added translations for the interface (so the game's partly
translated)
09/30/2004: v1.7.2
- added country file for Mexico (thanks to Arturo Mendez)
- improved the update script

File diff suppressed because one or more lines are too long

View File

@ -20,7 +20,7 @@ AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
dnl Add the languages which your application supports here.
ALL_LINGUAS="de nl fr pl ro"
ALL_LINGUAS="de nl fr pl ro bg"
AM_GLIB_GNU_GETTEXT
AC_OUTPUT([

View File

@ -219,18 +219,20 @@ fixture_winner_of(const Fixture *fix, gboolean team_id)
else
{
first_leg = fixture_get_first_leg(fix);
if(fix->result[0][0] + first_leg->result[1][0] >
fix->result[1][0] + first_leg->result[0][0])
winner_idx = 0;
else if(fix->result[0][0] + first_leg->result[1][0] <
fix->result[1][0] + first_leg->result[0][0])
winner_idx = 1;
else if(fix->result[1][0] > first_leg->result[1][0])
winner_idx = 1;
if(fix->result[0][2] + fix->result[1][2] != 0)
winner_idx = (fix->result[0][2] < fix->result[1][2]);
else if(fix->result[0][0] + fix->result[0][1] +
first_leg->result[1][0] + first_leg->result[1][1] !=
fix->result[1][0] + fix->result[1][1] +
first_leg->result[0][0] + first_leg->result[0][1])
winner_idx = (fix->result[0][0] + fix->result[0][1] +
first_leg->result[1][0] + first_leg->result[1][1] <
fix->result[1][0] + fix->result[1][1] +
first_leg->result[0][0] + first_leg->result[0][1]);
else
winner_idx = (fix->result[0][1] + fix->result[0][2] <
fix->result[1][1] + fix->result[1][2]);
winner_idx = (fix->result[1][0] + fix->result[1][1] >
first_leg->result[1][0] + first_leg->result[1][1]);
}
if(team_id)
@ -671,8 +673,9 @@ query_fixture_is_draw(const Fixture *fix)
first_leg = fixture_get_first_leg(fix);
return (fix->result[0][0] == first_leg->result[0][0] &&
fix->result[1][0] + first_leg->result[1][0]);
return (fix->result[0][1] + fix->result[1][1] == 0 &&
fix->result[0][0] == first_leg->result[0][0] &&
fix->result[1][0] == first_leg->result[1][0]);
}
/** Check whether a user's team participates.

View File

@ -15,7 +15,7 @@ string_contrib_entry Mark Calderbank, Michal Rudolf
string_contrib_title Country definitions
string_contrib_entry Győző Both (Australia, Germany, Italy, Scotland, USA)
string_contrib_entry Mark Calderbank (England, Ireland, Spain, Victoria, Wales)
string_contrib_entry Mark Calderbank (Bulgaria, England, Ireland, Spain, Victoria, Wales)
string_contrib_entry Tobe &amp; Arne Deprez (Belgium)
string_contrib_entry Celso Goya (Brazil)
string_contrib_entry Pechorin (Serbia &amp; Montenegro)
@ -29,3 +29,4 @@ string_contrib_entry Győző Both (German)
string_contrib_entry Tobe &amp; Arne Deprez (Dutch)
string_contrib_entry Michal Rudolf (Polish)
string_contrib_entry Cristian Spoiala (Romanian)
string_contrib_entry Rostislav "zbrox" Raykov (Bulgarian)