Skip to content

Commit c530424

Browse files
committed
Merge branch 'ddnet' into chillerbot
2 parents 5e8869d + 0213535 commit c530424

26 files changed

+1095
-768
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
- name: Prepare Linux (non-fancy)
5757
if: ${{ contains(matrix.os, 'ubuntu') && !matrix.fancy }}
5858
run: |
59-
rustup default 1.48.0
6059
sudo rm -rf /var/lib/mysql/ /var/run/mysqld
6160
sudo mkdir /var/lib/mysql/ /var/run/mysqld/
6261
sudo chown mysql:mysql /var/lib/mysql/ /var/run/mysqld/

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1933,6 +1933,7 @@ set_src(ENGINE_SHARED GLOB_RECURSE src/engine/shared
19331933
assertion_logger.h
19341934
chillerbot/langparser.cpp
19351935
chillerbot/langparser.h
1936+
chillerbot/variables.h
19361937
compression.cpp
19371938
compression.h
19381939
config.cpp
@@ -2043,7 +2044,6 @@ set_src(GAME_SHARED GLOB src/game
20432044
teamscore.cpp
20442045
teamscore.h
20452046
tuning.h
2046-
variables.h
20472047
version.h
20482048
voting.h
20492049
)

data/languages/simplified_chinese.txt

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
# 2023-05-21 RemakePower
3636
# 2023-07-20 By
3737
# 2023-08-11 By
38+
# 2023-11-25 By
3839
##### /authors #####
3940

4041
##### translated strings #####
@@ -1715,76 +1716,76 @@ Moved ingame
17151716
== 游戏内移动
17161717

17171718
Error playing demo
1718-
==
1719+
== 回放播放错误
17191720

17201721
Some map images could not be loaded. Check the local console for details.
1721-
==
1722+
== 未能加载某些地图图片。检查本地控制台以获取详情。
17221723

17231724
Some map sounds could not be loaded. Check the local console for details.
1724-
==
1725+
== 未能加载某些地图音效。检查本地控制台以获取详情。
17251726

17261727
Loading menu themes
1727-
==
1728+
== 正在加载主菜单主题
17281729

17291730
Render complete
1730-
==
1731+
== 渲染完毕
17311732

17321733
Videos directory
1733-
==
1734+
== 视频目录
17341735

17351736
Video was saved to '%s'
1736-
==
1737+
== 视频保存至 "%s"
17371738

17381739
Go back the specified duration
1739-
==
1740+
== 快退指定时长
17401741

17411742
[Demo player duration]
17421743
%d min.
1743-
==
1744+
== %d 分
17441745

17451746
[Demo player duration]
17461747
%d sec.
1747-
==
1748+
== %d 秒
17481749

17491750
Change the skip duration
1750-
==
1751+
== 变更指定时长
17511752

17521753
Go forward the specified duration
1753-
==
1754+
== 快进指定时长
17541755

17551756
Render cut to video
1756-
==
1757+
== 渲染裁剪部分
17571758

17581759
No demo selected
1759-
==
1760+
== 未选择回放
17601761

17611762
Created
1762-
==
1763+
== 创建日期
17631764

17641765
Netversion
1765-
==
1766+
== Netversion
17661767

17671768
[Demo details]
17681769
map not included
1769-
==
1770+
== 未包含地图
17701771

17711772
Ghosts directory
1772-
==
1773+
== 影子目录
17731774

17741775
Activate all
1775-
==
1776+
== 全部启用
17761777

17771778
Deactivate all
1778-
==
1779+
== 全部停用
17791780

17801781
Enable ghost
1781-
==
1782+
== 启用影子
17821783

17831784
Only save improvements
1784-
==
1785+
== 只保存更佳记录
17851786

17861787
Regular background color
1787-
==
1788+
== 原图层背景颜色
17881789

17891790
Entities background color
1790-
==
1791+
== 实体层背景颜色

data/languages/traditional_chinese.txt

Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
# 2023-05-25 cheeser0613
2525
# 2023-07-20 By
2626
# 2023-08-11 By
27+
# 2023-11-25 By
2728
##### /authors #####
2829

2930
##### translated strings #####
@@ -698,7 +699,7 @@ Check now
698699
== 檢查更新
699700

700701
Loading DDNet Client
701-
== 載入 DDNet 客戶端中...
702+
== 正在載入 DDNet 客戶端
702703

703704
Browser
704705
== 瀏覽
@@ -1349,7 +1350,7 @@ Connected
13491350
== 連接成功
13501351

13511352
Loading map file from storage
1352-
== 正在從硬盤中加載地圖檔案
1353+
== 正在從硬盤中載入地圖檔案
13531354

13541355
Why are you slowmo replaying to read this?
13551356
== 所以你爲什麽要慢速回放來看這個?
@@ -1376,16 +1377,16 @@ Requesting to join the game
13761377
== 正在請求加入游戲
13771378

13781379
Loading menu images
1379-
== 正在加載主菜單圖片
1380+
== 正在載入主菜單圖片
13801381

13811382
Loading demo files
1382-
== 正在加載回放檔案
1383+
== 正在載入回放檔案
13831384

13841385
Loading ghost files
1385-
== 正在加載影子檔案
1386+
== 正在載入影子檔案
13861387

13871388
Loading skin files
1388-
== 正在加載外觀檔案
1389+
== 正在載入外觀檔案
13891390

13901391
Appearance
13911392
== 游戲界面
@@ -1439,13 +1440,13 @@ A Tee
14391440
== 其他玩家
14401441

14411442
Loading assets
1442-
== 正在加載材質
1443+
== 正在載入材質
14431444

14441445
Loading race demo files
1445-
== 正在加載回放檔案
1446+
== 正在載入回放檔案
14461447

14471448
Loading sound files
1448-
== 正在加載聲音檔案
1449+
== 正在載入聲音檔案
14491450

14501451
Play the current demo
14511452
== 播放回放
@@ -1641,22 +1642,22 @@ No server selected
16411642
== 未選擇伺服器
16421643

16431644
Mark the beginning of a cut (right click to reset)
1644-
== 標記裁剪起點 (右鍵重置)
1645+
== 標記裁切起點 (右鍵重置)
16451646

16461647
Mark the end of a cut (right click to reset)
1647-
== 標記裁剪終點 (右鍵重置)
1648+
== 標記裁切終點 (右鍵重置)
16481649

16491650
Close the demo player
16501651
== 關閉回放
16511652

16521653
Export demo cut
1653-
== 另存裁剪部分
1654+
== 另存裁切部分
16541655

16551656
Cut interval
1656-
== 裁剪區間
1657+
== 裁切區間
16571658

16581659
Cut length
1659-
== 裁剪長度
1660+
== 裁切長度
16601661

16611662
Axis
16621663
== 軸
@@ -1704,76 +1705,76 @@ Moved ingame
17041705
== 遊戲內移動
17051706

17061707
Error playing demo
1707-
==
1708+
== 回放播放錯誤
17081709

17091710
Some map images could not be loaded. Check the local console for details.
1710-
==
1711+
== 未能載入某些地圖圖片。檢查本機控制台以取得詳情。
17111712

17121713
Some map sounds could not be loaded. Check the local console for details.
1713-
==
1714+
== 未能載入某些地圖音效。檢查本機控制台以取得詳情。
17141715

17151716
Loading menu themes
1716-
==
1717+
== 正在載入主選單主題
17171718

17181719
Render complete
1719-
==
1720+
== 渲染完畢
17201721

17211722
Videos directory
1722-
==
1723+
== 影片目錄
17231724

17241725
Video was saved to '%s'
1725-
==
1726+
== 影片保存至 "%s"
17261727

17271728
Go back the specified duration
1728-
==
1729+
== 倒轉指定時長
17291730

17301731
[Demo player duration]
17311732
%d min.
1732-
==
1733+
== %d 分
17331734

17341735
[Demo player duration]
17351736
%d sec.
1736-
==
1737+
== %d 秒
17371738

17381739
Change the skip duration
1739-
==
1740+
== 變更指定時長
17401741

17411742
Go forward the specified duration
1742-
==
1743+
== 快轉指定時長
17431744

17441745
Render cut to video
1745-
==
1746+
== 渲染裁切部分
17461747

17471748
No demo selected
1748-
==
1749+
== 未選擇回放
17491750

17501751
Created
1751-
==
1752+
== 建立日期
17521753

17531754
Netversion
1754-
==
1755+
== Netversion
17551756

17561757
[Demo details]
17571758
map not included
1758-
==
1759+
== 未包含地圖
17591760

17601761
Ghosts directory
1761-
==
1762+
== 影子目錄
17621763

17631764
Activate all
1764-
==
1765+
== 全部啟用
17651766

17661767
Deactivate all
1767-
==
1768+
== 全部停用
17681769

17691770
Enable ghost
1770-
==
1771+
== 啟用影子
17711772

17721773
Only save improvements
1773-
==
1774+
== 只保存更佳記錄
17741775

17751776
Regular background color
1776-
==
1777+
== 原圖層背景顏色
17771778

17781779
Entities background color
1779-
==
1780+
== 實體層背景顏色

scripts/check_config_variables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def find_config_variables(config_variables):
4646
return variables_not_found
4747

4848
def main():
49-
lines = read_all_lines('src/game/variables.h') + read_all_lines('src/engine/shared/config_variables.h')
49+
lines = read_all_lines('src/engine/shared/config_variables.h')
5050
config_variables = parse_config_variables(lines)
5151
config_variables_not_found = find_config_variables(config_variables)
5252
for variable_code in config_variables_not_found:

src/engine/client/serverbrowser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ void CServerBrowser::SetLatency(NETADDR Addr, int Latency)
657657
CServerBrowser::CServerEntry *CServerBrowser::Add(const NETADDR *pAddrs, int NumAddrs)
658658
{
659659
// create new pEntry
660-
CServerEntry *pEntry = (CServerEntry *)m_ServerlistHeap.Allocate(sizeof(CServerEntry));
660+
CServerEntry *pEntry = m_ServerlistHeap.Allocate<CServerEntry>();
661661
mem_zero(pEntry, sizeof(CServerEntry));
662662

663663
// set the info

src/engine/console.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ class IConsole : public IInterface
126126

127127
// DDRace
128128

129-
bool m_Cheated;
129+
virtual bool Cheated() const = 0;
130+
131+
virtual int FlagMask() const = 0;
130132
virtual void SetFlagMask(int FlagMask) = 0;
131133
};
132134

src/engine/server.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ class IServer : public IInterface
204204
virtual void GetMapInfo(char *pMapName, int MapNameSize, int *pMapSize, SHA256_DIGEST *pSha256, int *pMapCrc) = 0;
205205

206206
virtual bool WouldClientNameChange(int ClientID, const char *pNameRequest) = 0;
207+
virtual bool WouldClientClanChange(int ClientID, const char *pClanRequest) = 0;
207208
virtual void SetClientName(int ClientID, const char *pName) = 0;
208209
virtual void SetClientClan(int ClientID, const char *pClan) = 0;
209210
virtual void SetClientCountry(int ClientID, int Country) = 0;

0 commit comments

Comments
 (0)