1
1
mirror of https://github.com/tstellar/bygfoot.git synced 2024-12-15 17:59:42 +01:00
Commit Graph

1614 Commits

Author SHA1 Message Date
Tom Stellard
c1bc51a33b Simplify team_get_fixture() with an early continue 2020-12-24 10:43:39 -08:00
Tom Stellard
d2a82fe888 Simplify code in team_get_fixture() to make it more readable 2020-12-24 10:43:39 -08:00
Tom Stellard
863fefd371 Make team_get_fixture() return const pointer 2020-12-24 10:43:39 -08:00
Tom Stellard
bc506ef7c4 Make fixture_get() return const pointer 2020-12-24 10:43:39 -08:00
Tom Stellard
3b54d38578 Add --random-seed option
This flag can be used to set the seed for the random number generator.  This
is mainly meant for testing.
2020-12-24 10:43:39 -08:00
Tom Stellard
981cd51ef2 Validate country definitions on startup
Try to load all the country definitions on startup to ensure that they
are all valid.  Invalid XML can cause bygfoot to abort when simulating
matches and make users lose any unsaved progress.
2020-12-24 10:43:39 -08:00
Tom Stellard
6889fd148e Remove references to some cups that have no definitions 2020-12-24 10:43:39 -08:00
Tom Stellard
a527695341 Fix invalid xml in algeria and angola league definitions 2020-12-24 10:43:39 -08:00
Tom Stellard
fd4f1e4657 Remove Byte Order Mark and No-Break Space characters from xml files
The xml parser does not know how to parse these.
2020-12-24 10:43:39 -08:00
Tom Stellard
1d8058f7cf Fix African cup names 2020-12-24 10:43:39 -08:00
Tom Stellard
bfa6430bef Speed up game simulations by using g_datalist_id_get_data()
g_datalist_id_get_data() performs much better than g_datalist_get_data()
because it uses a hash based lookup instead of string compare.
I tested this by starting a game with an English Premier league team
and then simulating to week 6.  According to perf's cycle counts, this
patch makes this test case about 10 times faster.

There is still room for improvement.  We currently re-compute the GQuark
value for every lookup, but we could pre-compute the GQuark once for each
option key and then use that value when looking up the data.
2020-12-24 10:43:39 -08:00
Tom Stellard
f5521480a6 cmake: Add some fixes to get a minimal build/install working 2020-12-24 10:43:39 -08:00
Tom Stellard
315689583c zip: Remove usage of OF macros
These are only needed to support very old K&R C compilers[1].  gentoo has also
renamed these macros in its zlib package[2] which means this code was failing
to compile there.

[1] https://trac.osgeo.org/gdal/ticket/6220
[2] https://bugs.gentoo.org/383179
2020-12-24 10:43:39 -08:00
gunnar_g
19bc5b2171 add CmakeList files 2020-12-24 10:43:39 -08:00
Tom Stellard
70ac753abc Add rules files that were used to convert SVN repo to git 2020-12-24 10:43:35 -08:00
mrsmola
9dc3ee83e1 added svn-properties 2020-12-24 10:39:25 -08:00
mrsmola
689b721c97 Added svn properties 2020-12-24 10:39:25 -08:00
mrsmola
fe9be6f19d Added svn properties 2020-12-24 10:39:25 -08:00
mrsmola
81033de648 added svn properties 2020-12-24 10:39:25 -08:00
mrsmola
a623dcbbd7 changed svn-properties 2020-12-24 10:39:25 -08:00
mrsmola
971a50aa9e changed mime-type to text/xml 2020-12-24 10:39:25 -08:00
mrsmola
524129cb67 changed mime-type to text/xml 2020-12-24 10:39:25 -08:00
mrsmola
a1108efd16 changed mime-type to text/xml 2020-12-24 10:39:25 -08:00
mrsmola
7302f6656c changed mime-type to text/xml 2020-12-24 10:39:25 -08:00
mrsmola
86c96be85c changed mime-type to text/xml 2020-12-24 10:39:25 -08:00
mrsmola
6215647748 changed mime-type to text/xml 2020-12-24 10:39:25 -08:00
mrsmola
2775e779e9 changed mime-type to text/xml 2020-12-24 10:39:25 -08:00
mrsmola
5c5edaa079 changed mime-type to text/xml 2020-12-24 10:39:25 -08:00
mrsmola
0802d261fb changed mime-type to text/xml 2020-12-24 10:39:25 -08:00
mrsmola
722b1ed51f changed mime-type to text/xml 2020-12-24 10:39:25 -08:00
mrsmola
fcf6c149e6 changed mime-type to text/xml 2020-12-24 10:39:25 -08:00
mrsmola
d3149d6d00 changed mime-type to text/xml 2020-12-24 10:39:25 -08:00
mrsmola
9c930fa6cb changed mime-type to text/xml 2020-12-24 10:39:25 -08:00
mrsmola
c89dd5e21b changed mime-type to text/xml 2020-12-24 10:39:25 -08:00
mrsmola
7317ea2d54 changed mime-type to text/xml 2020-12-24 10:39:25 -08:00
mrsmola
e82d7880a0 changed mime-type to image/jpeg 2020-12-24 10:39:25 -08:00
mrsmola
07de1866b5 changed mime-type to image/png 2020-12-24 10:39:25 -08:00
mrsmola
be18d56725 changed mime-type to image/png 2020-12-24 10:39:25 -08:00
mrsmola
a2684d3976 changed mime-type to application/octet-stream 2020-12-24 10:39:25 -08:00
mrsmola
bacb4fef52 Set up after initial start 2020-12-24 10:39:18 -08:00
mrsmola
4a518680b3 Copy of the last stable Version from CVS 2020-12-24 10:39:17 -08:00
gunnar_g
82bb59b25c Updated README file 2014-04-30 07:10:33 +00:00
gunnar_g
ae7746a58f Updated Serbian definiton to 2013 2013-08-22 11:17:35 +00:00
gunnar_g
7bca1cf023 Fix the changelog 2012-02-14 13:24:29 +00:00
gunnar_g
c17c3c4368 Fix the changelog 2012-02-14 12:32:27 +00:00
gunnar_g
12243cf285 Remove the old links to _short leagues. These do not exist anymore 2012-02-14 12:17:57 +00:00
gunnar_g
bde900dfdd Fixed bug request 3257236, always show news after a match 2012-02-07 11:56:55 +00:00
gunnar_g
ee0f60f9f3 update changelog 2012-02-02 15:43:10 +00:00
gunnar_g
8bafb64b70 Add the boost and style to the default team (ticket 2778645 ) 2012-02-02 15:40:22 +00:00
filipemb
4b3f081aab updated cameroon elite one and two to 10/11 season 2011-09-23 10:19:49 +00:00