mirror of
https://github.com/tstellar/bygfoot.git
synced 2025-01-30 23:44:49 +01:00
"Def system improvements."
This commit is contained in:
parent
86aaeb8f99
commit
8b539e28fe
File diff suppressed because one or more lines are too long
10
po/bg.po
10
po/bg.po
@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: bygfoot\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2006-06-29 18:04+0200\n"
|
||||
"POT-Creation-Date: 2006-06-30 15:22+0200\n"
|
||||
"PO-Revision-Date: 2006-03-01 17:06+0200\n"
|
||||
"Last-Translator: Rostislav \"zbrox\" Raykov <nostalgiafed@gmail.com>\n"
|
||||
"Language-Team: Bulgarian <dict@fsa-bg.org>\n"
|
||||
@ -237,7 +237,7 @@ msgid " Week "
|
||||
msgstr " Седмица "
|
||||
|
||||
#. Game was decided in extra time.
|
||||
#: src/fixture.c:863
|
||||
#: src/fixture.c:880
|
||||
msgid " e.t."
|
||||
msgstr " в доп. време"
|
||||
|
||||
@ -254,7 +254,7 @@ msgid " more"
|
||||
msgstr "повече"
|
||||
|
||||
#. Game was decided in penalty shoot-out.
|
||||
#: src/fixture.c:860
|
||||
#: src/fixture.c:877
|
||||
msgid " p."
|
||||
msgstr " след дузпи"
|
||||
|
||||
@ -333,7 +333,7 @@ msgstr ""
|
||||
"%s Ви уволняват заради неуспехи.\n"
|
||||
"Намирате нова работа при %s от %s."
|
||||
|
||||
#: src/transfer.c:483
|
||||
#: src/transfer.c:489
|
||||
#, c-format
|
||||
msgid "%s has been added to the transfer list for %d weeks."
|
||||
msgstr "%s е бил добавен към списъка за трансфер за %d седмици."
|
||||
@ -2680,7 +2680,7 @@ msgstr ""
|
||||
"собствениците на %s са чули за освобождаването Ви и предлагат работа.Ето "
|
||||
"малко информация за %s:"
|
||||
|
||||
#: src/callback_func.c:472 src/callbacks.c:196 src/transfer.c:490
|
||||
#: src/callback_func.c:472 src/callbacks.c:196 src/transfer.c:496
|
||||
msgid "The transfer deadline is over."
|
||||
msgstr "Крайният срок за трансфери е преминал."
|
||||
|
||||
|
10
po/da.po
10
po/da.po
@ -2,7 +2,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Bygfoot Football Manager 1.9\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2006-06-29 18:04+0200\n"
|
||||
"POT-Creation-Date: 2006-06-30 15:22+0200\n"
|
||||
"PO-Revision-Date: 2006-05-27 12:31+0100\n"
|
||||
"Last-Translator: Kristian Poul Herkild <kristian@herkild.dk>\n"
|
||||
"Language-Team: <kristian@herkild.dk>\n"
|
||||
@ -233,7 +233,7 @@ msgid " Week "
|
||||
msgstr " Uge "
|
||||
|
||||
#. Game was decided in extra time.
|
||||
#: src/fixture.c:863
|
||||
#: src/fixture.c:880
|
||||
msgid " e.t."
|
||||
msgstr " forl.sp."
|
||||
|
||||
@ -250,7 +250,7 @@ msgid " more"
|
||||
msgstr " mere"
|
||||
|
||||
#. Game was decided in penalty shoot-out.
|
||||
#: src/fixture.c:860
|
||||
#: src/fixture.c:877
|
||||
msgid " p."
|
||||
msgstr " str."
|
||||
|
||||
@ -330,7 +330,7 @@ msgstr ""
|
||||
"%s har fyret dig på grund af manglende succes.\n"
|
||||
"Du har fået et nyt arbejde hos %s i %s."
|
||||
|
||||
#: src/transfer.c:483
|
||||
#: src/transfer.c:489
|
||||
#, c-format
|
||||
msgid "%s has been added to the transfer list for %d weeks."
|
||||
msgstr "%s er blevet tilføjet transferlisten for %d uger."
|
||||
@ -2666,7 +2666,7 @@ msgstr ""
|
||||
"af %s hørt om din fyring, og har tilbudt dig et job. Her er nogle "
|
||||
"informationer om %s:"
|
||||
|
||||
#: src/callback_func.c:472 src/callbacks.c:196 src/transfer.c:490
|
||||
#: src/callback_func.c:472 src/callbacks.c:196 src/transfer.c:496
|
||||
msgid "The transfer deadline is over."
|
||||
msgstr "Tidsfristen for spillerhandler er overskredet."
|
||||
|
||||
|
10
po/de.po
10
po/de.po
@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: de\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2006-06-29 18:04+0200\n"
|
||||
"POT-Creation-Date: 2006-06-30 15:22+0200\n"
|
||||
"PO-Revision-Date: 2006-05-20 10:05+0200\n"
|
||||
"Last-Translator: Michael Trent <trent@cortalconsors.de>\n"
|
||||
"Language-Team: Deutsch <de@li.org>\n"
|
||||
@ -243,7 +243,7 @@ msgid " Week "
|
||||
msgstr " Woche "
|
||||
|
||||
#. Game was decided in extra time.
|
||||
#: src/fixture.c:863
|
||||
#: src/fixture.c:880
|
||||
msgid " e.t."
|
||||
msgstr " n.V."
|
||||
|
||||
@ -260,7 +260,7 @@ msgid " more"
|
||||
msgstr " mehr"
|
||||
|
||||
#. Game was decided in penalty shoot-out.
|
||||
#: src/fixture.c:860
|
||||
#: src/fixture.c:877
|
||||
msgid " p."
|
||||
msgstr " i.E."
|
||||
|
||||
@ -341,7 +341,7 @@ msgstr ""
|
||||
"%s feuert Dich wegen Erfolglosigkeit.\n"
|
||||
"Du bekommst eine neue Arbeit mit %s in der %s."
|
||||
|
||||
#: src/transfer.c:483
|
||||
#: src/transfer.c:489
|
||||
#, c-format
|
||||
msgid "%s has been added to the transfer list for %d weeks."
|
||||
msgstr "%s wurde für %d Wochen auf die Transferliste gesetzt."
|
||||
@ -2683,7 +2683,7 @@ msgstr ""
|
||||
"s·von·Deiner·Entlassung·gehört·und·bieten·Dir·einen·Vertrag·an."
|
||||
"·Hier·sind·einige·Daten·zu·%s:"
|
||||
|
||||
#: src/callback_func.c:472 src/callbacks.c:196 src/transfer.c:490
|
||||
#: src/callback_func.c:472 src/callbacks.c:196 src/transfer.c:496
|
||||
msgid "The transfer deadline is over."
|
||||
msgstr "Die Transferfrist ist vorbei."
|
||||
|
||||
|
10
po/es.po
10
po/es.po
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: es-1.9.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2006-06-29 18:04+0200\n"
|
||||
"POT-Creation-Date: 2006-06-30 15:22+0200\n"
|
||||
"PO-Revision-Date: 2006-03-17 11:30+0100\n"
|
||||
"Last-Translator: Carlos Garces <carlos-garces@usa.net>\n"
|
||||
"Language-Team: <es@li.org>\n"
|
||||
@ -236,7 +236,7 @@ msgid " Week "
|
||||
msgstr " Semana "
|
||||
|
||||
#. Game was decided in extra time.
|
||||
#: src/fixture.c:863
|
||||
#: src/fixture.c:880
|
||||
msgid " e.t."
|
||||
msgstr " t.e."
|
||||
|
||||
@ -253,7 +253,7 @@ msgid " more"
|
||||
msgstr " más"
|
||||
|
||||
#. Game was decided in penalty shoot-out.
|
||||
#: src/fixture.c:860
|
||||
#: src/fixture.c:877
|
||||
msgid " p."
|
||||
msgstr " p."
|
||||
|
||||
@ -332,7 +332,7 @@ msgstr ""
|
||||
"%s lo despide por su mala racha.\n"
|
||||
"Encuentra un nuevo trabajo con %s en %s."
|
||||
|
||||
#: src/transfer.c:483
|
||||
#: src/transfer.c:489
|
||||
#, c-format
|
||||
msgid "%s has been added to the transfer list for %d weeks."
|
||||
msgstr "%s se agregó a la lista de transferencia por %d semanas."
|
||||
@ -2659,7 +2659,7 @@ msgstr ""
|
||||
"Afortunadamente, los dueños de %s han oído hablar de su despido y le ofrecen "
|
||||
"un trabajo. Aquí tiene la información sobre %s:"
|
||||
|
||||
#: src/callback_func.c:472 src/callbacks.c:196 src/transfer.c:490
|
||||
#: src/callback_func.c:472 src/callbacks.c:196 src/transfer.c:496
|
||||
msgid "The transfer deadline is over."
|
||||
msgstr "El plazo de la transferencia terminó."
|
||||
|
||||
|
10
po/fr.po
10
po/fr.po
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Bygfoot 1.9\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2006-06-29 18:04+0200\n"
|
||||
"POT-Creation-Date: 2006-06-30 15:22+0200\n"
|
||||
"PO-Revision-Date: 2006-03-01 23:33+0100\n"
|
||||
"Last-Translator: Forjan Frédéric <fforjan@linuxmail.org>\n"
|
||||
"Language-Team: French\n"
|
||||
@ -235,7 +235,7 @@ msgid " Week "
|
||||
msgstr " Semaine "
|
||||
|
||||
#. Game was decided in extra time.
|
||||
#: src/fixture.c:863
|
||||
#: src/fixture.c:880
|
||||
msgid " e.t."
|
||||
msgstr " a.p."
|
||||
|
||||
@ -252,7 +252,7 @@ msgid " more"
|
||||
msgstr " plus"
|
||||
|
||||
#. Game was decided in penalty shoot-out.
|
||||
#: src/fixture.c:860
|
||||
#: src/fixture.c:877
|
||||
msgid " p."
|
||||
msgstr " p."
|
||||
|
||||
@ -332,7 +332,7 @@ msgstr ""
|
||||
"%s vous licencie pour manque d'efficacité.\n"
|
||||
"Vous trouvez un nouvel emploi chez %s dans la %s."
|
||||
|
||||
#: src/transfer.c:483
|
||||
#: src/transfer.c:489
|
||||
#, c-format
|
||||
msgid "%s has been added to the transfer list for %d weeks."
|
||||
msgstr "%s a été ajouté à la liste des transfers pour %d semaines."
|
||||
@ -2687,7 +2687,7 @@ msgstr ""
|
||||
"résultats. Heureusement pour vous, l'équipe de %s a eu vent de votre renvoi "
|
||||
"et vous proposent un emploi. Voici quelques informations sur %s :"
|
||||
|
||||
#: src/callback_func.c:472 src/callbacks.c:196 src/transfer.c:490
|
||||
#: src/callback_func.c:472 src/callbacks.c:196 src/transfer.c:496
|
||||
msgid "The transfer deadline is over."
|
||||
msgstr "La date limite de transfert est dépassée."
|
||||
|
||||
|
10
po/nl.po
10
po/nl.po
@ -9,7 +9,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Bygfoot 1.9.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2006-06-29 18:04+0200\n"
|
||||
"POT-Creation-Date: 2006-06-30 15:22+0200\n"
|
||||
"PO-Revision-Date: 2006-03-17 11:27+0100\n"
|
||||
"Last-Translator: Arne en Tobe Deprez <tobedeprez@scarlet.be>\n"
|
||||
"Language-Team: Dutch <tobedeprez@scarlet.be>\n"
|
||||
@ -238,7 +238,7 @@ msgid " Week "
|
||||
msgstr " Week "
|
||||
|
||||
#. Game was decided in extra time.
|
||||
#: src/fixture.c:863
|
||||
#: src/fixture.c:880
|
||||
msgid " e.t."
|
||||
msgstr " n.v."
|
||||
|
||||
@ -255,7 +255,7 @@ msgid " more"
|
||||
msgstr " meer"
|
||||
|
||||
#. Game was decided in penalty shoot-out.
|
||||
#: src/fixture.c:860
|
||||
#: src/fixture.c:877
|
||||
msgid " p."
|
||||
msgstr " P."
|
||||
|
||||
@ -334,7 +334,7 @@ msgstr ""
|
||||
"%s ontslaat je wegens onsuccesvolheid.\n"
|
||||
"Je vindt een nieuwe job met %s in de %s."
|
||||
|
||||
#: src/transfer.c:483
|
||||
#: src/transfer.c:489
|
||||
#, c-format
|
||||
msgid "%s has been added to the transfer list for %d weeks."
|
||||
msgstr "%s werd op de transferlijst gezet voor %d weken."
|
||||
@ -2676,7 +2676,7 @@ msgstr ""
|
||||
"hebben de eigenaars van %s van uw ontslag gehoord en bieden u een nieuwe job "
|
||||
"aan. Hier is een beetje informatie over %s:"
|
||||
|
||||
#: src/callback_func.c:472 src/callbacks.c:196 src/transfer.c:490
|
||||
#: src/callback_func.c:472 src/callbacks.c:196 src/transfer.c:496
|
||||
msgid "The transfer deadline is over."
|
||||
msgstr "De transfermarkt is gesloten."
|
||||
|
||||
|
10
po/pl.po
10
po/pl.po
@ -5,7 +5,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: pl\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2006-06-29 18:04+0200\n"
|
||||
"POT-Creation-Date: 2006-06-30 15:22+0200\n"
|
||||
"PO-Revision-Date: 2006-02-28 22:51+0100\n"
|
||||
"Last-Translator: Michal Rudolf <mrudolf@kdewebdev.org>\n"
|
||||
"Language-Team: Polish <kdei18n-pl-devel@lists.sourceforge.net>\n"
|
||||
@ -242,7 +242,7 @@ msgid " Week "
|
||||
msgstr " Tydzień "
|
||||
|
||||
#. Game was decided in extra time.
|
||||
#: src/fixture.c:863
|
||||
#: src/fixture.c:880
|
||||
msgid " e.t."
|
||||
msgstr " dogr."
|
||||
|
||||
@ -259,7 +259,7 @@ msgid " more"
|
||||
msgstr " więcej"
|
||||
|
||||
#. Game was decided in penalty shoot-out.
|
||||
#: src/fixture.c:860
|
||||
#: src/fixture.c:877
|
||||
msgid " p."
|
||||
msgstr " k."
|
||||
|
||||
@ -338,7 +338,7 @@ msgstr ""
|
||||
"%s zwalnia Cię z powodu niezadowalających wyników. Zostałeś zatrudniony "
|
||||
"przez klub %s (%s)."
|
||||
|
||||
#: src/transfer.c:483
|
||||
#: src/transfer.c:489
|
||||
#, c-format
|
||||
msgid "%s has been added to the transfer list for %d weeks."
|
||||
msgstr "%s został dodany do listy transferowej na %d tygodni."
|
||||
@ -2666,7 +2666,7 @@ msgstr ""
|
||||
"właściciele klubu %s na wieść o Twoim zwolnieniu zaproponowali Ci pracę. Oto "
|
||||
"podstawowe wiadomości o %s:"
|
||||
|
||||
#: src/callback_func.c:472 src/callbacks.c:196 src/transfer.c:490
|
||||
#: src/callback_func.c:472 src/callbacks.c:196 src/transfer.c:496
|
||||
msgid "The transfer deadline is over."
|
||||
msgstr "Okres transferów został zakończony."
|
||||
|
||||
|
10
po/ro.po
10
po/ro.po
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: bygfoot 0.9.1\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2006-06-29 18:04+0200\n"
|
||||
"POT-Creation-Date: 2006-06-30 15:22+0200\n"
|
||||
"PO-Revision-Date: 2006-05-28 12:44+0200\n"
|
||||
"Last-Translator: Spoială Cristian <scristian@gmail.com>\n"
|
||||
"Language-Team: Romanian\n"
|
||||
@ -235,7 +235,7 @@ msgid " Week "
|
||||
msgstr " Săptămâna"
|
||||
|
||||
#. Game was decided in extra time.
|
||||
#: src/fixture.c:863
|
||||
#: src/fixture.c:880
|
||||
msgid " e.t."
|
||||
msgstr " e.t."
|
||||
|
||||
@ -252,7 +252,7 @@ msgid " more"
|
||||
msgstr " mult"
|
||||
|
||||
#. Game was decided in penalty shoot-out.
|
||||
#: src/fixture.c:860
|
||||
#: src/fixture.c:877
|
||||
msgid " p."
|
||||
msgstr " p."
|
||||
|
||||
@ -331,7 +331,7 @@ msgstr ""
|
||||
"%s v-a concediat datorită insucceselor.\n"
|
||||
"Aţi găsit de lucru la %s în %s."
|
||||
|
||||
#: src/transfer.c:483
|
||||
#: src/transfer.c:489
|
||||
#, c-format
|
||||
msgid "%s has been added to the transfer list for %d weeks."
|
||||
msgstr "%s a fost adăugat pe lista de transferuri pentru %d săptămâni."
|
||||
@ -2663,7 +2663,7 @@ msgstr ""
|
||||
"patronii echipei %s au auzit de concediere şi ar dori să vă angajaze. Câteva "
|
||||
"informaţii despre %s:"
|
||||
|
||||
#: src/callback_func.c:472 src/callbacks.c:196 src/transfer.c:490
|
||||
#: src/callback_func.c:472 src/callbacks.c:196 src/transfer.c:496
|
||||
msgid "The transfer deadline is over."
|
||||
msgstr "Perioada de transferuri s-a sfârşit."
|
||||
|
||||
|
10
po/sv.po
10
po/sv.po
@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: bygfoot 1.9.5\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2006-06-29 18:04+0200\n"
|
||||
"POT-Creation-Date: 2006-06-30 15:22+0200\n"
|
||||
"PO-Revision-Date: 2006-02-26 22:53+0100\n"
|
||||
"Last-Translator: Daniel Nylander <po@danielnylander.se>\n"
|
||||
"Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n"
|
||||
@ -235,7 +235,7 @@ msgid " Week "
|
||||
msgstr " Vecka "
|
||||
|
||||
#. Game was decided in extra time.
|
||||
#: src/fixture.c:863
|
||||
#: src/fixture.c:880
|
||||
msgid " e.t."
|
||||
msgstr " e.t."
|
||||
|
||||
@ -252,7 +252,7 @@ msgid " more"
|
||||
msgstr " mer"
|
||||
|
||||
#. Game was decided in penalty shoot-out.
|
||||
#: src/fixture.c:860
|
||||
#: src/fixture.c:877
|
||||
msgid " p."
|
||||
msgstr " s."
|
||||
|
||||
@ -331,7 +331,7 @@ msgstr ""
|
||||
"%s sparkar dig på grund av dåliga framgångar.\n"
|
||||
"Du hittar ett nytt jobb hos %s i %s."
|
||||
|
||||
#: src/transfer.c:483
|
||||
#: src/transfer.c:489
|
||||
#, c-format
|
||||
msgid "%s has been added to the transfer list for %d weeks."
|
||||
msgstr "%s har varit på övergångslistan i %d veckor."
|
||||
@ -2666,7 +2666,7 @@ msgstr ""
|
||||
"ägarna av %s hört om din situation och erbjuder dig ett jobb. Här är lite "
|
||||
"information om %s:"
|
||||
|
||||
#: src/callback_func.c:472 src/callbacks.c:196 src/transfer.c:490
|
||||
#: src/callback_func.c:472 src/callbacks.c:196 src/transfer.c:496
|
||||
msgid "The transfer deadline is over."
|
||||
msgstr "Tidsgräns för övergång slut."
|
||||
|
||||
|
10
po/zh.po
10
po/zh.po
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: bygfoot 0.1\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2006-06-29 18:04+0200\n"
|
||||
"POT-Creation-Date: 2006-06-30 15:22+0200\n"
|
||||
"PO-Revision-Date: 2005-09-28 13:35+0800\n"
|
||||
"Last-Translator: root <lbyoopp@gmail.com>\n"
|
||||
"Language-Team: Chinese <i18n-translation@lists.linux.net.cn>\n"
|
||||
@ -235,7 +235,7 @@ msgid " Week "
|
||||
msgstr " 周 "
|
||||
|
||||
#. Game was decided in extra time.
|
||||
#: src/fixture.c:863
|
||||
#: src/fixture.c:880
|
||||
msgid " e.t."
|
||||
msgstr "加时赛"
|
||||
|
||||
@ -252,7 +252,7 @@ msgid " more"
|
||||
msgstr " 更多"
|
||||
|
||||
#. Game was decided in penalty shoot-out.
|
||||
#: src/fixture.c:860
|
||||
#: src/fixture.c:877
|
||||
msgid " p."
|
||||
msgstr " 点球"
|
||||
|
||||
@ -331,7 +331,7 @@ msgstr ""
|
||||
"在认真分析了这个赛季球队的糟糕表现后,%s的董事会解雇了你。\n"
|
||||
"之后你与%s签定了一份合同,你将在%s继续你的教练生涯。"
|
||||
|
||||
#: src/transfer.c:483
|
||||
#: src/transfer.c:489
|
||||
#, c-format
|
||||
msgid "%s has been added to the transfer list for %d weeks."
|
||||
msgstr "%s 被添加到转会列表,他被挂牌 %d 周"
|
||||
@ -2617,7 +2617,7 @@ msgstr ""
|
||||
"面对一个失败的赛季加上球迷的压力球队董事解雇了你。幸运的是,%s 的老板在听说你"
|
||||
"被解雇后向你提出合同,邀请你去他们那里执教,这里是 %s 的信息"
|
||||
|
||||
#: src/callback_func.c:472 src/callbacks.c:196 src/transfer.c:490
|
||||
#: src/callback_func.c:472 src/callbacks.c:196 src/transfer.c:496
|
||||
msgid "The transfer deadline is over."
|
||||
msgstr "球员转会截止日期已过"
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
||||
/**
|
||||
* Program version number.
|
||||
*/
|
||||
#define VERS "2.0.1"
|
||||
#define VERS "2.1.0"
|
||||
|
||||
/** Home dir name */
|
||||
//#define HOMEDIRNAME ".bygfoot-cvs"
|
||||
|
@ -39,6 +39,7 @@
|
||||
#define query_cup_is_international(clid) query_cup_has_property(clid, "international")
|
||||
#define query_cup_is_national(clid) query_cup_has_property(clid, "national")
|
||||
#define query_cup_hide(clid) query_cup_has_property(clid, "hide")
|
||||
#define query_cup_weak_at_home(clid) query_cup_has_property(clid, "weak_at_home")
|
||||
|
||||
Cup
|
||||
cup_new(gboolean new_id);
|
||||
|
@ -393,7 +393,7 @@ fixture_write_round_robin(gpointer league_cup, gint cup_round,
|
||||
{
|
||||
gint i, j;
|
||||
gint first_week, week_gap, week_round_number,
|
||||
clid, first_fixture;
|
||||
clid, first_fixture, rr_break;
|
||||
gboolean home_advantage;
|
||||
League *league = NULL;
|
||||
Cup *cup = NULL;
|
||||
@ -409,10 +409,12 @@ fixture_write_round_robin(gpointer league_cup, gint cup_round,
|
||||
league = (League*)league_cup;
|
||||
fixtures = league->fixtures;
|
||||
clid = league->id;
|
||||
first_week = (fixtures->len == 0) ?
|
||||
league->first_week : g_array_index(fixtures, Fixture, fixtures->len - 1).week_number + 1;
|
||||
first_week = (fixtures->len == 0) ? league->first_week :
|
||||
g_array_index(fixtures, Fixture, fixtures->len - 1).week_number +
|
||||
league->rr_break;
|
||||
week_gap = league->week_gap;
|
||||
home_advantage = TRUE;
|
||||
rr_break = league->rr_break;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -422,6 +424,7 @@ fixture_write_round_robin(gpointer league_cup, gint cup_round,
|
||||
fixtures = cup->fixtures;
|
||||
clid = cup->id;
|
||||
home_advantage = (!g_array_index(cup->rounds, CupRound, cup_round).neutral);
|
||||
rr_break = week_gap;
|
||||
}
|
||||
|
||||
first_fixture = fixtures->len;
|
||||
@ -448,15 +451,19 @@ fixture_write_round_robin(gpointer league_cup, gint cup_round,
|
||||
if(!one_round)
|
||||
{
|
||||
/* second half of fixtures */
|
||||
first_week = first_week + (len - 2) * week_gap + rr_break;
|
||||
for(i = 0; i < len - 1; i++)
|
||||
{
|
||||
week_round_number = (cup_round == -1) ?
|
||||
1 : fixture_get_free_round(first_week + (len - 1 + i) * week_gap, teams, -1, -1);
|
||||
week_round_number = (cup_round == -1) ? 1 :
|
||||
fixture_get_free_round(first_week + i * week_gap, teams, -1, -1);
|
||||
|
||||
for(j = 0; j < len / 2; j++)
|
||||
fixture_write(fixtures, g_array_index(fixtures, Fixture, first_fixture + i * (len / 2) + j).teams[1],
|
||||
g_array_index(fixtures, Fixture, first_fixture + i * (len / 2) + j).teams[0],
|
||||
first_week + (len - 1 + i) * week_gap, week_round_number,
|
||||
fixture_write(fixtures,
|
||||
g_array_index(fixtures, Fixture,
|
||||
first_fixture + i * (len / 2) + j).teams[1],
|
||||
g_array_index(fixtures, Fixture,
|
||||
first_fixture + i * (len / 2) + j).teams[0],
|
||||
first_week + i * week_gap, week_round_number,
|
||||
clid, cup_round, 0, home_advantage, FALSE, FALSE);
|
||||
}
|
||||
}
|
||||
@ -555,11 +562,21 @@ fixture_write_knockout_round(Cup *cup, gint cup_round, GPtrArray *teams)
|
||||
|
||||
week_round_number =
|
||||
fixture_get_free_round(first_week, teams, -1, -1);
|
||||
for(i=0; i<=(teams->len - 2) / 2; i++)
|
||||
fixture_write(cup->fixtures, (Team*)g_ptr_array_index(teams, 2 * i),
|
||||
(Team*)g_ptr_array_index(teams, 2 * i + 1), first_week,
|
||||
week_round_number, cup->id, cup_round, 0,
|
||||
!round->neutral, FALSE, (!round->home_away && round->replay == 0));
|
||||
for(i=0; i<=(teams->len - 2) / 2; i++)
|
||||
if(!round->home_away && query_cup_weak_at_home(cup->id) &&
|
||||
league_from_clid(((Team*)g_ptr_array_index(teams, 2 * i))->clid)->layer >=
|
||||
league_from_clid(((Team*)g_ptr_array_index(teams, 2 * i + 1))->clid)->layer)
|
||||
fixture_write(cup->fixtures, (Team*)g_ptr_array_index(teams, 2 * i),
|
||||
(Team*)g_ptr_array_index(teams, 2 * i + 1), first_week,
|
||||
week_round_number, cup->id, cup_round, 0,
|
||||
!round->neutral, FALSE,
|
||||
(!round->home_away && round->replay == 0));
|
||||
else
|
||||
fixture_write(cup->fixtures, (Team*)g_ptr_array_index(teams, 2 * i + 1),
|
||||
(Team*)g_ptr_array_index(teams, 2 * i), first_week,
|
||||
week_round_number, cup->id, cup_round, 0,
|
||||
!round->neutral, FALSE,
|
||||
(!round->home_away && round->replay == 0));
|
||||
|
||||
if(round->home_away)
|
||||
{
|
||||
|
@ -55,6 +55,7 @@ league_new(gboolean new_id)
|
||||
|
||||
new.id = (new_id) ? league_id_new : -1;
|
||||
new.layer = -1;
|
||||
new.rr_break = 1;
|
||||
|
||||
new.average_talent = 0;
|
||||
|
||||
|
@ -104,6 +104,8 @@ typedef struct
|
||||
/** How many round robins are played. Important for
|
||||
small leagues with 10 teams or so. Default: 1. */
|
||||
gint round_robins;
|
||||
/** */
|
||||
gint rr_break;
|
||||
/** Number of yellow cards until a player gets banned.
|
||||
Default 1000 (which means 'off', basically). */
|
||||
gint yellow_red;
|
||||
|
@ -349,7 +349,13 @@ transfer_get_deadline(void)
|
||||
MAX(length, g_array_index(
|
||||
lig(i).fixtures, Fixture, lig(i).fixtures->len - 1).week_number);
|
||||
|
||||
return (gint)rint((gfloat)length * const_float("float_transfer_deadline_percentage"));
|
||||
if(length == 0)
|
||||
for(i=0;i<cps->len;i++)
|
||||
length = MAX(length, cp(i).last_week);
|
||||
|
||||
return (length > 0) ?
|
||||
(gint)rint((gfloat)length * const_float("float_transfer_deadline_percentage")) :
|
||||
35;
|
||||
}
|
||||
|
||||
/** Remove a player from the transfer list. */
|
||||
|
@ -51,6 +51,7 @@
|
||||
#define TAG_AVERAGE_TALENT "average_talent"
|
||||
#define TAG_NAMES_FILE "names_file"
|
||||
#define TAG_ACTIVE "active"
|
||||
#define TAG_BREAK "break"
|
||||
#define TAG_PROM_REL "prom_rel"
|
||||
#define TAG_PROM_GAMES "prom_games"
|
||||
#define TAG_PROM_GAMES_DEST_SID "prom_games_dest_sid"
|
||||
@ -106,6 +107,7 @@ enum XmlLeagueStates
|
||||
STATE_TEAM_NAMES_FILE,
|
||||
STATE_TEAM_AVERAGE_TALENT,
|
||||
STATE_TEAM_DEF_FILE,
|
||||
STATE_BREAK,
|
||||
STATE_END
|
||||
};
|
||||
|
||||
@ -163,6 +165,8 @@ xml_league_read_start_element (GMarkupParseContext *context,
|
||||
state = STATE_NAMES_FILE;
|
||||
else if(strcmp(element_name, TAG_ACTIVE) == 0)
|
||||
state = STATE_ACTIVE;
|
||||
else if(strcmp(element_name, TAG_BREAK) == 0)
|
||||
state = STATE_BREAK;
|
||||
else if(strcmp(element_name, TAG_PROM_REL) == 0)
|
||||
state = STATE_PROM_REL;
|
||||
else if(strcmp(element_name, TAG_PROM_GAMES) == 0)
|
||||
@ -239,6 +243,7 @@ xml_league_read_end_element (GMarkupParseContext *context,
|
||||
strcmp(element_name, TAG_AVERAGE_TALENT) == 0 ||
|
||||
strcmp(element_name, TAG_NAMES_FILE) == 0 ||
|
||||
strcmp(element_name, TAG_ACTIVE) == 0 ||
|
||||
strcmp(element_name, TAG_BREAK) == 0 ||
|
||||
strcmp(element_name, TAG_PROM_REL) == 0 ||
|
||||
strcmp(element_name, TAG_TEAMS) == 0)
|
||||
state = STATE_LEAGUE;
|
||||
@ -319,6 +324,8 @@ xml_league_read_text (GMarkupParseContext *context,
|
||||
misc_string_assign(&new_league.names_file, buf);
|
||||
else if(state == STATE_ACTIVE)
|
||||
new_league.active = int_value;
|
||||
else if(state == STATE_BREAK)
|
||||
new_league.rr_break = int_value;
|
||||
else if(state == STATE_PROM_GAMES_DEST_SID)
|
||||
misc_string_assign(&new_league.prom_rel.prom_games_dest_sid, buf);
|
||||
else if(state == STATE_PROM_GAMES_LOSER_SID)
|
||||
|
@ -53,6 +53,7 @@ enum
|
||||
TAG_LEAGUE_PROM_REL_ELEMENT_RANK,
|
||||
TAG_LEAGUE_PROM_REL_ELEMENT_DEST_SID,
|
||||
TAG_LEAGUE_PROM_REL_ELEMENT_TYPE,
|
||||
TAG_LEAGUE_BREAK,
|
||||
TAG_END
|
||||
};
|
||||
|
||||
@ -108,6 +109,7 @@ xml_loadsave_league_end_element (GMarkupParseContext *context,
|
||||
if(tag == TAG_LEAGUE_FIRST_WEEK ||
|
||||
tag == TAG_LEAGUE_LAYER ||
|
||||
tag == TAG_LEAGUE_ACTIVE ||
|
||||
tag == TAG_LEAGUE_BREAK ||
|
||||
tag == TAG_LEAGUE_AVERAGE_TALENT ||
|
||||
tag == TAG_LEAGUE_ROUND_ROBINS ||
|
||||
tag == TAG_NAME ||
|
||||
@ -186,6 +188,8 @@ xml_loadsave_league_text (GMarkupParseContext *context,
|
||||
new_league->yellow_red = int_value;
|
||||
else if(state == TAG_LEAGUE_ACTIVE)
|
||||
new_league->active = int_value;
|
||||
else if(state == TAG_LEAGUE_BREAK)
|
||||
new_league->rr_break = int_value;
|
||||
else if(state == TAG_LEAGUE_AVERAGE_TALENT)
|
||||
new_league->average_talent = float_value;
|
||||
else if(state == TAG_LEAGUE_PROM_REL_PROM_GAMES_DEST_SID)
|
||||
@ -276,6 +280,7 @@ xml_loadsave_league_write(const gchar *prefix, const League *league)
|
||||
xml_write_int(fil, league->week_gap, TAG_WEEK_GAP, I0);
|
||||
xml_write_int(fil, league->yellow_red, TAG_YELLOW_RED, I0);
|
||||
xml_write_int(fil, league->active, TAG_LEAGUE_ACTIVE, I0);
|
||||
xml_write_int(fil, league->rr_break, TAG_LEAGUE_BREAK, I0);
|
||||
xml_write_float(fil, league->average_talent, TAG_LEAGUE_AVERAGE_TALENT, I0);
|
||||
|
||||
fprintf(fil, "%s<_%d>\n", I0, TAG_LEAGUE_PROM_REL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user