Skip to content

Commit 48a73d6

Browse files
committed
Merge remote-tracking branch 'upstream/master' into sidequest/single-soldier-coin-training
# Conflicts: # libs/s25main/addons/const_addons.h # tests/s25Main/integration/testAttacking.cpp
2 parents 707fef9 + 230b1bb commit 48a73d6

39 files changed

Lines changed: 694 additions & 216 deletions

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ jobs:
220220

221221
- name: Upload coverage (Codecov)
222222
if: matrix.coverage && success()
223-
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
223+
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
224224
with:
225225
fail_ci_if_error: true
226226
disable_search: true

Jenkinsfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ pipeline {
4949
options {
5050
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '14', daysToKeepStr: '14', numToKeepStr: '180'))
5151
disableConcurrentBuilds()
52+
disableResume()
5253
skipDefaultCheckout(true)
5354
}
5455

data/RTTR/texte/keyboardlayout.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ F9:................... Readme
3131
F10:.................. Settings (UI, ...)
3232
F11:.................. Musicplayer
3333
F12:.................. Options window
34+
Print:................ Take screenshot
3435

3536
Post office:
3637

doc/lua/functions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ Closes a spot kicking any player or AI there.
238238

239239
**SetAI(level)**
240240
Add an AI or change its difficulty.
241+
Switching a slot to an AI assigns the AI's default name. If a custom name should be kept, call `SetName(name)` after `SetAI(level)`.
241242

242243
**SetName(name)**
243244
Change the player's name.

external/languages

external/libutil

external/turtle

libs/s25client/s25client.cpp

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void WaitForEnter()
8888
if(waited)
8989
return;
9090
waited = true;
91-
bnw::cout << "\n\nPress ENTER to close this window . . ." << std::endl;
91+
bnw::cerr << "\n\nPress ENTER to close this window . . .\n";
9292
bnw::cin.clear();
9393
bnw::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
9494
bnw::cin.get();
@@ -244,39 +244,12 @@ void InstallSignalHandlers()
244244
#endif // _MSC_VER
245245
}
246246

247-
void UninstallSignalHandlers()
248-
{
249-
#ifdef _WIN32
250-
SetConsoleCtrlHandler(ConsoleSignalHandler, FALSE);
251-
#else
252-
struct sigaction sa;
253-
sa.sa_handler = SIG_DFL;
254-
sa.sa_flags = 0; // SA_RESTART would not allow to interrupt connect call;
255-
sigemptyset(&sa.sa_mask);
256-
257-
sigaction(SIGINT, &sa, nullptr);
258-
sigaction(SIGPIPE, &sa, nullptr);
259-
sigaction(SIGALRM, &sa, nullptr);
260-
#endif // _WIN32
261-
262-
#ifdef _MSC_VER
263-
SetUnhandledExceptionFilter(nullptr);
264-
#else
265-
signal(SIGSEGV, SIG_DFL);
266-
#endif
267-
}
268-
269247
/**
270248
* Exit-Handler, wird bei @p exit ausgeführt.
271249
*/
272250
void ExitHandler()
273251
{
274252
Socket::Shutdown();
275-
UninstallSignalHandlers();
276-
277-
#ifdef _DEBUG
278-
WaitForEnter();
279-
#endif
280253
}
281254

282255
void SetAppSymbol()

libs/s25main/CheatCommandTracker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ void CheatCommandTracker::onSpecialKeyEvent(const KeyEvent& ke)
5757

5858
switch(ke.kt)
5959
{
60+
case KeyType::F6: cheats_.toggleHumanAIPlayer(); break;
6061
case KeyType::F7:
6162
{
6263
if(ke.alt)
@@ -65,7 +66,6 @@ void CheatCommandTracker::onSpecialKeyEvent(const KeyEvent& ke)
6566
cheats_.toggleAllVisible();
6667
}
6768
break;
68-
case KeyType::F10: cheats_.toggleHumanAIPlayer(); break;
6969
default: break;
7070
}
7171
}

libs/s25main/GlobalGameSettings.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@ void GlobalGameSettings::registerAllAddons()
105105
AddonWine,
106106
AddonLeather,
107107
AddonNoArmorDefault,
108-
AddonArmorCapturedBld
108+
AddonArmorCapturedBld,
109+
AddonForesterFarmFieldAvoidance,
110+
AddonForesterReachRadius,
111+
AddonWoodcutterReachRadius,
112+
AddonStonemasonReachRadius
109113
>;
110114
// clang-format on
111115
using namespace boost::mp11;

0 commit comments

Comments
 (0)