diff options
| author | untodesu <kirill@untode.su> | 2025-07-01 03:23:05 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-07-01 03:23:05 +0500 |
| commit | 6dc5194895b6bd61d19bf5c95021471784084325 (patch) | |
| tree | 705c35b3a671a09fc52b406dca81e7761729ded6 /game/shared/world/item_registry.cc | |
| parent | 44d91043f268d93dd08e99c5855bd29f85dd61a7 (diff) | |
| download | voxelius-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/world/item_registry.cc')
| -rw-r--r-- | game/shared/world/item_registry.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/game/shared/world/item_registry.cc b/game/shared/world/item_registry.cc index 3ec3b88..378f0f1 100644 --- a/game/shared/world/item_registry.cc +++ b/game/shared/world/item_registry.cc @@ -58,7 +58,8 @@ world::ItemInfoBuilder& world::item_registry::construct(const char* name) if(it != world::item_registry::builders.cend()) { return it->second; - } else { + } + else { return world::item_registry::builders.emplace(name, ItemInfoBuilder(name)).first->second; } } @@ -69,7 +70,8 @@ world::ItemInfo* world::item_registry::find(const char* name) if(it != world::item_registry::names.cend()) { return world::item_registry::find(it->second); - } else { + } + else { return nullptr; } } @@ -78,7 +80,8 @@ world::ItemInfo* world::item_registry::find(const item_id item) { if((item != NULL_ITEM_ID) && (item <= world::item_registry::items.size())) { return world::item_registry::items[item - 1].get(); - } else { + } + else { return nullptr; } } |
