summaryrefslogtreecommitdiffstats
path: root/game/shared/threading.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-07-01 03:23:05 +0500
committeruntodesu <kirill@untode.su>2025-07-01 03:23:05 +0500
commit6dc5194895b6bd61d19bf5c95021471784084325 (patch)
tree705c35b3a671a09fc52b406dca81e7761729ded6 /game/shared/threading.cc
parent44d91043f268d93dd08e99c5855bd29f85dd61a7 (diff)
downloadvoxelius-6dc5194895b6bd61d19bf5c95021471784084325.tar.bz2
voxelius-6dc5194895b6bd61d19bf5c95021471784084325.zip
I forgot to set these to true in .clang-format
https://files.catbox.moe/909rig.gif
Diffstat (limited to 'game/shared/threading.cc')
-rw-r--r--game/shared/threading.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/game/shared/threading.cc b/game/shared/threading.cc
index 82bcad7..ae3b3ea 100644
--- a/game/shared/threading.cc
+++ b/game/shared/threading.cc
@@ -42,10 +42,12 @@ void threading::init(void)
// Use the maximum available number of concurrent
// hardware threads provided by the implementation
thread_pool_size = num_concurrent_threads;
- } else {
+ }
+ else {
if(num_concurrent_threads) {
thread_pool_size = math::clamp<unsigned int>(std::strtoul(argument, nullptr, 10), 1U, num_concurrent_threads);
- } else {
+ }
+ else {
thread_pool_size = math::max<unsigned int>(std::strtoul(argument, nullptr, 10), 1U);
}
}